Professional Documents
Culture Documents
com
background
border
border-bottom
border-left
border-right
border-top
font
list-style
margin
padding
Comments
/* Comment */
Pseudo Selectors
:hover
:active
:focus
:link
:visited
SYNTAX
BOX MODEL
Syntax
selector {property: value;}
External
<link rel="stylesheet" type="text/css" href="style.css" />
Internal
<style type="text/css">
selector {property: value;}
</style>
Inline Style
<tag style="property: value">
margin
GENERAL
Class
ID
div
span
color
cursor
display
overflow
visibility
FONT
Media Types
all
braille
embossed
handheld
print
projection
screen
speech
tty
tv
Units
%
em
pt
px
font-style
font-variant
font-weight
font-size
font-family
Italic, normal
normal, small-caps
bold, normal, lighter, bolder, brojana vrednost (100-900)
Size of the font
Specific font(s) to be used
TEXT
letter-spacing
line-height
text-align
text-decoration
text-indent
text-transform
vertical-align
word-spacing
height; width;
border
padding
75 x 25 px
margin-top; margin-right;
margin-bottom; margin-left;
padding-top; padding-right;
padding-bottom; padding-left;
BORDER
border-width
border-style
border-color
POSITION
clear
float
left
top
position
z-index
Any floating elements around the element | both, left, right, none
Floats to a specified side | left, right, none
The left position of an element | auto, length values (pt, in, cm, px)
The top position of an element | auto, vrednost (pt, in, cm, px)
static, relative, absolute
Element above or below overlapping elements
auto, integer (higher numbers on top)
BACKGROUND
background-color
background-image
background-repeat
background-attachment
Background color
Background image
repeat, no-repeat, repeat-x, repeat-y
Background image scroll with the element?
background-position
LIST
list-style-type