CSS Text

CSS Text
CSS has a lot of properties for formatting text.
Text Color and Background Color👇

CSS Text Alignment
The text-align property is used to set the horizontal alignment of a text. ( left alignment is default )

Example of right alignment👇

Example of justify alignment👇

Text Align Last
The text-align-last property specifies how to align the last line of a text.

Vertical Alignment
The vertical-align property sets the vertical alignment of an element.

Example of vertical-align : middle👇

CSS Text Decoration
Here, we will discuss the following topics👇
text-decoration-linetext-decoration-colortext-decoration-styletext-decoration-thicknesstext-decoration
1. text-decoration-line👇
The text-decoration-line property is used to add a decoration line to the text.
Example👇

2. text-decoration-color👇
The text-decoration-color property is used to set the color of the decoration line.

3. text-decoration-style👇
The text-decoration-style property is used to set the style of the decoration line.

Example 👇

4. text-decoration-thickness👇
The text-decoration-thickness property is used to set the thickness of the decoration line.
Example 👇

The Shorthand Property
The text-decoration property is a shorthand property for:
text-decoration-line(required)text-decoration-color(optional)text-decoration-style(optional)text-decoration-thickness(optional)

CSS Text Spacing
Here, we will discuss the following topics👇
text-indentletter-spacingline-heightword-spacingwhite-space
Text Indentation
The text-indent property is used to specify the indentation of the first line of a text:
Example of text-indent 👇

Letter Spacing
The letter-spacing property is used to specify the space between the characters in a text.

Example of Letter spacing👇

Line Height👇
The line-height property is used to specify the space between lines.
Example of line-height👇

Word Spacing
The word-spacing property is used to specify the space between the words in a text.
Example of word spacing👇

White Space
The white-space CSS property sets how white space inside an element is handled.

Example of white space👇
white-space Property👇

>
Download our HTML & CSS Visual Treat! ebook Here:
Click here
Comments
Join the discussionI think vertical align property:top and vertical-align:bottom which you describle is wrong. In case of vertical align:top ,the topmost border of the small box touches the top line of content which is right but in your case the bottom border of the red box touches the top line of content which is wrong.Could you please clear this , i am right or not please?




