|
|
|
|
|
|
| |
The background property (CSS Reference)
Introduction
The background property can be used to define a style for
the background of a HTML element. It can be used together with the following
background style sheets.
Construction
|
Name:
|
Description:
|
|
background-attachment
|
This property can be used to fix the background image when
the user scrolls the page. Only the text will scroll not the background
image. You can use one of the following options:
fixed
scroll
|
|
background-color
|
Sets the background color of element with one of the
following options:
color
transparent
|
|
background-image
|
Sets an image as a background for the element.
|
|
background-repeat
|
This property allows you to repeat the image either
vertical or horizontal with one of the following parameters:
repeat
repeat-x
repeat-y
no-repeat
|
|
background-position
|
This property can be used to define the position of the
image with one of the following options:
Percentage
length
top
center
bottom
left
right
|
Please see the appropriate section for more information and
an example.
|
|
|
|
|
|
|
|