Skip to content

Commit 2d8aed4

Browse files
Update Typography.md
1 parent f1b042b commit 2d8aed4

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

docs/CSS/css-basics/Typography.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,55 @@ p {
6666
font-variant: small-caps;
6767
}
6868
```
69+
70+
**6. Text Transform**
71+
72+
The `text-transform` property changes the case of the text.
73+
74+
```css
75+
h1 {
76+
text-transform: uppercase;
77+
}
78+
79+
p {
80+
text-transform: capitalize;
81+
}
82+
```
83+
84+
**7. Text Alignment**
85+
86+
The `text-align` property sets the horizontal alignment of the text.
87+
88+
```css
89+
div {
90+
text-align: center;
91+
}
92+
93+
p {
94+
text-align: justify;
95+
}
96+
```
97+
98+
**8. Text Decoration**
99+
100+
The `text-decoration` property adds decorations to the text, such as underlines, overlines, and line-throughs.
101+
102+
```css
103+
a {
104+
text-decoration: none; /* Removes underline from links */
105+
}
106+
107+
del {
108+
text-decoration: line-through;
109+
}
110+
```
111+
112+
**9. Text Shadow**
113+
114+
The `text-shadow` property adds a shadow effect to the text.
115+
116+
```css
117+
h1 {
118+
text-shadow: 2px 2px 5px gray;
119+
}
120+
```

0 commit comments

Comments
 (0)