Sams Teach Yourself HTML in 10 Minutes (4th Edition)

These styles set styles (for example, the bullet type) for ordered and unordered lists. Combine these styles with margins and indents.

list-style-image

Usage

Sets an image to replace the list bullets.

Values

url("...") The URL for the image.

none No images.

inherit The same as the parent element.

Initial Value

none

list-style-type

Usage

Sets the style of the unordered list bullets (or numbers in ordered lists).

Values

<shape> The bullets can be set to disc (closed circle), circle (open circle), or square (closed square).

<alignment> The bullets can be aligned around decimal or decimal-leading-zero.

<text> Numbers in an ordered list can be Roman numerals (lower-roman, upper-roman), Latin numerals (lower-latin, upper-latin), or American alphabet characters (lower-alpha, upper-alpha).

inherit The same as the parent element.

Initial Value

disc.

Категории