CSS indentation, CSS word spacing

 CSS indentation:

text-indent:2em;

The code means to indent 2 words. Can be used in px units. text-indent:10px; A more complete way of writing is as follows. It can also be used in the <a><p > tag. Practice makes perfect:

<div style="width:300px; text-indent:2em;"></div>

CSS word spacing:

letter-spacing word and word spacing, example:

<div style="width:300px; letter-spacing:8px"></div>

That is, set the CSS word spacing style of the corresponding div to letter-spacing:8px; and the word spacing to 8px.

The above is an introduction to CSS commonly used to set word spacing, character spacing, font spacing, and paragraph beginning indentation. The two CSS properties of letter-spacing (spacing setting) and text-indent (indent) are used respectively.

Guess you like

Origin blog.csdn.net/weixin_46774901/article/details/129823222