Professional Documents
Culture Documents
Example
Body{
The background-color property
background-color:yellow;
is used to set the background
}
color of an element
body {
The background-image property
background-image: url("tuli.jpg");
is used to set the background
}
image of an element
background-repeat: repeat;
The background-repeat property
is used to control the repetition of
an image in the background. background-repeat: repeat-y;
background-repeat: repeat-x;
background-position:100px;
The background-
position property is used to
control the position of an image in background-position:100px 200px;
the background.
background-attachment: fixed;
The background-
attachment property is used to
control the scrolling of an image background-attachment:scroll;
in the background.
Fonts
The font-family property is used font-family:georgia,garamond,serif;
to change the face of a font.
Padding
Links
Lists
list-style-type:circle;
The list-style-type allows you to control
list-style-type:square;
the shape or appearance of the marker.
list-style-type:decimal;
list-style-type:lower-alpha;
list-style-type:lower-roman;
list-stlye-position:outside;
The list-style-position specifies
list-style-position:inside;
whether a long point that wraps to a
second line should align with the first line
or start underneath the start of the
marker.
list-style-image: url(/images/bullet.gif);
The list-style-image specifies an image
for the marker rather than a bullet point
or number.
list-style: inside square;
The list-style serves as shorthand for
the preceding properties.