Home >Web Front-end >HTML Tutorial >CSS Language Notes<2>_html/css_WEB-ITnose
CSS properties
Any html element has width and height. In CSS, px is used to represent the size, and the percent sign "%" can also be used.
px: pixels
width: width
height: height
border: border
padding: padding
margin: margin
backgroun: background
font-family: set font
font-weight: thickness, value: bold (bold)
font-style: italic, value: italic (italic)
font-size: text size
font: abbreviated form
color: color, value: can be word, decimal, hexadecimal
text-align: horizontal alignment of text, value: left (left), center ( Center), right (right)
text-decoration: text decoration line, value: none (none), underline (underline), overline (overline), line-through (a line through the text )
text-indent: First line indent, expressed in pixels, such as: text-indent:24px; indent 24 pixels.
Letter-spacing: word spacing, same as above, expressed in pixels.
line-height: Line height, same as above, can be expressed in percentage or pixels.
To be continued....