Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

All CSS Background Properties

The number in the "CSS" column indicates in which CSS version the property is defined (CSS1
or CSS2).

Property Description Values CSS


background-color
background-image
Sets all the background background-repeat
background 1
properties in one declaration background-attachment
background-position
inherit
Sets whether a background scroll
background-attachment image is fixed or scrolls with the fixed 1
rest of the page inherit
color-rgb
color-hex
Sets the background color of an
background-color color-name 1
element
transparent
inherit
url(URL)
Sets the background image for an
background-image none 1
element
inherit
left top
left center
left bottom
right top
right center
Sets the starting position of a right bottom
background-position 1
background image center top
center center
center bottom
x% y%
xpos ypos
inherit
repeat
repeat-x
Sets if/how a background image
background-repeat repeat-y 1
will be repeated
no-repeat
inherit

All CSS Text Properties


The number in the "CSS" column indicates in which CSS version the property is defined (CSS1
or CSS2).

Property Description Values CSS


color Sets the color of a text color 1
ltr
direction Sets the text direction 2
rtl
normal
number
line-height Sets the distance between lines 1
length
%
normal
letter-spacing Increase or decrease the space between characters 1
length
left
right
text-align Aligns the text in an element 1
center
justify
none
underline
text-decoration Adds decoration to text overline 1
line-through
blink
length
text-indent Indents the first line of text in an element 1
%
none
text-shadow   color  
length
none
capitalize
text-transform Controls the letters in an element 1
uppercase
lowercase
normal
unicode-bidi   embed 2
bidi-override
baseline
sub
super
top
text-top
vertical-align Sets the vertical alignment of an element 1
middle
bottom
text-bottom
length
%
white-space Sets how white space inside an element is handled normal 1
pre
nowrap
normal
word-spacing Increase or decrease the space between words 1
length

All CSS Font Properties


The number in the "CSS" column indicates in which CSS version the property is defined (CSS1
or CSS2).

CS
Property Description Values
S
font-style
font-variant
font-weight
font-size/line-height
font-family
Sets all the font properties in one caption
font 1
declaration icon
menu
message-box
small-caption
status-bar
inherit
family-name
font-family Specifies the font family for text generic-family 1
inherit
xx-small
x-small
small
medium
large
x-large
font-size Specifies the font size of text 1
xx-large
smaller
larger
length
%
inherit
normal
italic
font-style Specifies the font style for text 1
oblique
inherit
font-variant Specifies whether or not a text should be normal 1
small-caps
displayed in a small-caps font
inherit
normal
bold
bolder
lighter
100
200
300
font-weight Specifies the weight of a font
400
500
600
700
800
900
inherit

You might also like