-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07-text-styling.html
94 lines (83 loc) · 2.59 KB
/
07-text-styling.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Property 7 - Text Styling</title>
<style>
body {
background-color: antiquewhite;
}
h1 {
color: brown;
}
h2,
h3 {
color: green;
}
.text-decoration p {
color: blueviolet;
}
.text-align p {
color: orangered;
font-size: 18px;
}
.text-transform p {
color: tomato;
font-size: 18px;
}
.letter-word-spacing-line-height p {
color: teal;
font-size: 18px;
}
.text-shadow-overflow p {
font-size: 18px;
color: chocolate;
}
</style>
</head>
<body>
<h1>Text Styling</h1>
<div class="text-decoration">
<h2>Text Decoration</h2>
<p style="text-decoration: overline">Text Decoration : Overline</p>
<p style="text-decoration: underline">Text Decoration : Underline</p>
<p style="text-decoration: line-through">
Text Decoration : Line Through
</p>
<p style="text-decoration: none">Text Decoration : None</p>
</div>
<hr />
<div class="text-align">
<h2>Text Alignment</h2>
<p style="text-align: left">Text Alignment : Left</p>
<p style="text-align: center">Text Alignment : Center</p>
<p style="text-align: right">Text Alignment : Right</p>
<p style="text-align: justify">Text Alignment : Justify</p>
</div>
<hr />
<div class="text-transform">
<h2>Text Transformation</h2>
<p style="text-transform: uppercase">Text Transform : Uppercase</p>
<p style="text-transform: lowercase">Text Transform : Lowercase</p>
<p style="text-transform: capitalize">Text transform : capitalize</p>
<p style="text-transform: none">Text transform : none</p>
</div>
<hr />
<div class="letter-word-spacing-line-height">
<h2>Letter Spacing , Word Spacing and Line Height</h2>
<p style="line-height: 80px">Line Height : 80px</p>
<p style="letter-spacing: 5px">Letter Spacing : 5px</p>
<p style="word-spacing: 15px">Word Spacing : 15px</p>
</div>
<hr />
<div class="text-shadow-overflow">
<h2>Text Shadow and Overflow</h2>
<p style="text-shadow: 2px 3px 4px brown">Text Shadow</p>
<p style="text-overflow: ellipsis">Text Overflow : Ellipsis</p>
<p style="text-overflow: clip">Text Overflow : Clip</p>
</div>
<hr />
</body>
</html>