css properties


You now know that styling a web page using CSS involves creating rules, and that these rules contain two parts: firstly, a selector to indicate which elements the rule applies to, and secondly, one or more properties which control the presentation of these elements.


So, if there is a part of the page that you want to make a certain color or size, then you need to find the corresponding property to control those elements.


The properties are grouped together into related functionality; for example, there are properties that allow you to control the presentation of tables, lists, and backgrounds.


FONT
font
font-family
font-size
font-size-adjust
font-stretch
font-style
font-variant
font-weight
TEXT
color
direction
letter-spacing
text-align
text-decoration
text-indent
text-shadow
text-transform
unicode-bidi
white-space
word-spacing
BACKGROUND
background
background-attachment
background-color
background-image
background-position
background-repeat
BORDER
border
border-color
border-style
border-width
border-bottom
border-bottom-color
border-bottom-style
border-bottom-width
border-left
border-left-color
border-left-style
border-left-width
border-right
border-right-color
border-right-style
border-right-width
border-top
border-top-color
border-top-style
border-top-width
MARGIN
margin
margin-bottom
margin-left
margin-right
margin-top
PADDING
padding
padding-bottom
padding-left
padding-right
padding-top
DIMENSIONS
height
line-height
max-height
max-width
min-height
min-width
width
POSITIONING
bottom
clip
left
overflow
right
top
vertical-align
z-index
OUTLINES
outline
outline-color
outline-style
outline-width
TABLE
border-collapse
border-spacing
caption-side
empty-cells
table-layout
LIST and MARKER
list-style
list-style-image
list-style-position
list-style-type
marker-offset
GENERATED CONTENT
content
counter-increment
counter-reset
quotes
CLASSIFICATION
clear
cursor
display
float
position
visibility