CSS introductory notes 4: common attributes

In the web page, if we want to modify the position of the text

1. text-align : used to set the position of the text, usually we will use three attribute values ​​of center, left, and right alignment.

2. text-decoration : used to set the underline of the text, often used to eliminate the underline of the link .

3. text-indent : used to indent the first line of text, the attribute value is pixel value; you can also use em, em is a relative unit, representing the size of a position.

4. Line-height : used to set the line spacing; the position of the text usually consists of three parts, namely the word height, the top spacing, and the bottom spacing; we set the line spacing to change the top and bottom margins of the text.

5. How to measure the distance between two lines : from the bottom edge of the first line to the bottom edge of the second line.

6. color : used to set the color of the text.

Guess you like

Origin blog.csdn.net/m0_52021758/article/details/113027992