-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (84 loc) · 5.02 KB
/
index.html
File metadata and controls
88 lines (84 loc) · 5.02 KB
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
<!DOCTYPE html>
<!--
Henry Matsen
IS 120
CSS Topic Presentation
text-align
text-decoration
text-transform
text-indent
line-height
-->
<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">
<meta name="description" content="text-align, text-decoration, text-transform, text-indent, line-height">
<link rel="stylesheet" href="styles.css">
<title>CSS Text</title>
</head>
<body>
<main>
<h1>CSS TOPIC: TEXT</h1>
<article>
<h2>text-align</h2>
<p>Align to the center, right, left (just like in Word or Google Doc), or justify (alters spacing so every line ends at the same point).</p>
</article>
<img src="images/Paragraph.png" alt="paragraph icons"/>
<!--text-align CSS codepen-->
<p class="codepen" data-height="300" data-default-tab="css,result" data-slug-hash="mdqbovP" data-user="hdmats" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
<span>See the Pen <a href="https://codepen.io/hdmats/pen/mdqbovP">
text-align CSS</a> by Henry Matsen (<a href="https://codepen.io/hdmats">@hdmats</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
<article>
<h2>text-decoration</h2>
<p>text-decoration is about adding lines. The options are overline, through-line, or underline. Their are also wavy, dotted and double-line styles. </p>
</article>
<img src="images/underline.png" alt="underline icon"/>
<!--text-decoration CSS-->
<p class="codepen" data-height="300" data-default-tab="css,result" data-slug-hash="KKyPEjo" data-user="hdmats" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
<span>See the Pen <a href="https://codepen.io/hdmats/pen/KKyPEjo">
text-decoration CSS</a> by Henry Matsen (<a href="https://codepen.io/hdmats">@hdmats</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
<article>
<h2>text-indent</h2>
<p>text-indent length can be set either by percentage(%), pixels(px), or by any other standard measurement (em). The indent can be both positive and negative.</p>
</article>
<!--text-indent CSS-->
<p class="codepen" data-height="300" data-default-tab="css,result" data-slug-hash="rNYBbaP" data-user="hdmats" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
<span>See the Pen <a href="https://codepen.io/hdmats/pen/rNYBbaP">
text-indent CSS</a> by Henry Matsen (<a href="https://codepen.io/hdmats">@hdmats</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
<article>
<h2>text-transform</h2>
<p>text-transform can either convert all letters to UPPERCASE, lowercase, and capitalize every word (captialize).</p>
</article>
<img src="images/Case.png" alt="case change icon"/>
<!--text-transform CSS-->
<p class="codepen" data-height="300" data-default-tab="css,result" data-slug-hash="gOXYyrW" data-user="hdmats" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
<span>See the Pen <a href="https://codepen.io/hdmats/pen/gOXYyrW">
text-transform CSS</a> by Henry Matsen (<a href="https://codepen.io/hdmats">@hdmats</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
<article>
<h2>line-height</h2>
<p>line-height can change the height of the line either by a number, a percentage(%), or by pixels(px). If using a percentage or number be aware that it multiplies it by the font size so a larger font would increase the line height.</p>
</article>
<!--line-height CSS-->
<p class="codepen" data-height="300" data-default-tab="css,result" data-slug-hash="KKyPLWK" data-user="hdmats" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;">
<span>See the Pen <a href="https://codepen.io/hdmats/pen/KKyPLWK">
line-height CSS</a> by Henry Matsen (<a href="https://codepen.io/hdmats">@hdmats</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
</main>
</body>
</html>