Binary World

<CSS> Text 본문

개발자의 길/Web Programming

<CSS> Text

모쿠 2017. 3. 30. 15:12

<CSS Text>



<07_text.html>


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CSS Text</title>
<style>
body {
    /* 텍스트 색상 */
    color: blue;
}
/* 텍스트 정렬 */
.cls-left {
    text-align:left;
    text-decoration: underline;
}
.cls-center {
    text-align:center;
    text-decoration: overline;
}
.cls-right{
    text-align:right;
    text-decoration: line-through;
}
{
    text-indent: 20px;
}
 
</style>
</head>
<body>
 
<h1>SCC Text</h1>
<h2 class="cls-left">Left</h2>
<h2 class="cls-center">Center</h2>
<h2 class="cls-right">Right</h2>
<p>
서울에사는 천모씨(31)가 오늘 오후 다른 강의실로 원정을 떠나겠다며 선언했습니다. <br/>
 이에 같은 강의실 사람들은 환호를 질렀고, 다른 강의실 사람들은 혹시나 자신의 강의실에 그가 올까 전전긍긍하고 있다는 소식입니다.
</p>
 
</body>
</html>
cs



<출력화면>



'개발자의 길 > Web Programming' 카테고리의 다른 글

<CSS> List  (0) 2017.03.30
<CSS> Link  (0) 2017.03.30
<CSS> Margin  (0) 2017.03.30
<CSS> Box Model  (0) 2017.03.30
<CSS> Color삽입  (0) 2017.03.30
Comments