CSS Basic Properties
CSS Basic Properties
Text Properties
List Properties
Border Properties
Font Properties
Text Properties
Property Description Values
color Sets the color of a text RGB, hex, keyword
line-height Sets the distance between lines normal, number, length, %
letter-spacing Increase or decrease the space between characters normal, length
text-align Aligns the text in an element left, right, center, justify
text-decoration Adds decoration to text none, underline, overline, line-through
text-indent Indents the first line of text in an element length, %
text-transform Controls the letters in an element none, capitalize, uppercase, lowercase
List Properties
Property Description Values
Sets all the properties for a list in one list-style-type, list-style-position, list-style-image,
list-style
declaration inherit
list-style- Specifies an image as the list-item
URL, none, inherit
image marker
list-style- Specifies where to place the list-item
inside, outside, inherit
position marker
none, disc, circle, square, decimal, decimal-
leading-zero,
armenian, georgian, lower-alpha, upper-alpha,
list-style-type Specifies the type of list-item marker
lower-greek,
lower-latin, upper-latin, lower-roman, upper-
roman, inherit
Border Properties
Property Description Values
Sets all the border properties in
border border-width, border-style, border-color
one declaration
border-bottom Sets all the bottom border border-bottom-width, border-bottom-style, border-
web.simmons.edu/~grabiner/comm244/weekthree/css-basic-properties.html 1/2
8/25/22, 11:31 AM CSS Basic Properties
Font Properties
Property Description Values
font-style, font-variant, font-weight, font-size/line-height,
Sets all the font properties in
font font-family, caption, icon, menu, message-box, small-
one declaration
caption, status-bar, inherit
Specifies the font family for
font-family family-name, generic-family, inherit
text
xx-small, x-small, small, medium, large, x-large, xx-large,
font-size Specifies the font size of text
smaller, larger, length, %, inherit
font-style Specifies the font style for text normal, italic, oblique, inherit
Specifies whether or not a text
font-variant should be displayed in a small- normal, small-caps, inherit
caps font
normal, bold, bolder, lighter,
font-weight Specifies the weight of a font 100, 200, 300, 400, 500, 600, 700, 800, 900, inherit
Careful, many of these are not supported!
web.simmons.edu/~grabiner/comm244/weekthree/css-basic-properties.html 2/2