HTML and CSS Reference
In-Depth Information
ul {
list-style: none; /* Removes default bullets. */
}
ul li {
padding-left: 40px; /* Indents list items, leaving room for
background image on the left. */
background: url(bulletpoint.jpg) 0 0 no-repeat;
}
Backgrounds in CSS 3
CSS 3 has many changes in store for backgrounds. The most obvious is the
option for multiple background images, but it also comes with four new
properties as well as adjustments to current properties.
MULTIPLE BACKGROUND IMAGES
In CSS 3, you will be able to use more than one image for the background of
an element. The code is the same as CSS 2, except you would separate
images with a comma. The first declared image is positioned at the top of
the element, with subsequent images “layered” beneath it, like so:
background-image: url(top-image.jpg), url(middle-image.jpg),
url(bottom-image.jpg);
Search WWH ::




Custom Search