Typography
Font size
This property sets the size of the text. The size can be specified in various units such as pixels (px), ems (em), or percentages (%). The default font size is 16 pixels.
Line height
This property sets the height of each line of text, and it determines the vertical space between the lines. The line height can be specified in various units such as pixels (px), ems (em), or percentages (%).
Text color
This property sets the color of the text. The color can be specified using various color models such as RGB, HEX, HSL. Default color is black.
Font weight
This property sets the thickness of the text. The value can be specified using keywords such as bold, normal, or a numeric value between 100 and 900.
Font style
This property sets the style of the text. The value can be specified using keywords such as italic or normal.
Text decoration
This property sets the decoration of the text. The value can be specified using keywords such as underline, overline, line-through, or none.
Text align
This property sets the horizontal alignment of the text. The value can be specified using keywords such as left, right, center, justify, or inherit.
Last updated