22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

should produce something like this:<br />

This is a long preceding<br />

paragraph ...<br />

i. This is the first item.<br />

ii. This is the second item.<br />

iii. This is the third item.<br />

This is a long following<br />

paragraph ...<br />

12.6.2 Lists: the ’list-style-type’, ’list-style-image’,<br />

’list-style-position’, and ’list-style’ properties<br />

The list properties allow basic visual formatting of lists. As with more general<br />

markers, a element with ’display: list-item’ generates a principal box [p. 97] for<br />

the element’s content and an optional marker box. The other list properties allow<br />

authors to specify the marker type (image, glyph, or number) and its position with<br />

respect to the principal box (outside it or within it before content). They do not<br />

allow authors to specify distinct style (colors, fonts, alignment, etc.) for the list<br />

marker or adjust its position with respect to the principal box.<br />

Furthermore, when a marker M (created with ’display: marker’) is used with a<br />

list item created by the list properties, M replaces the standard list item marker.<br />

With the list properties, the background properties [p. 188] apply to the principal<br />

box only; an ’outside’ marker box is transparent. Markers offer more control<br />

over marker box style.<br />

’list-style-type’<br />

Value: disc | circle | square | decimal | decimal-leading-zero |<br />

lower-roman | upper-roman | lower-greek | lower-alpha |<br />

lower-latin | upper-alpha | upper-latin | hebrew | armenian |<br />

georgian | cjk-ideographic | hiragana | katakana | hiragana-iroha<br />

| katakana-iroha | none | inherit<br />

Initial: disc<br />

Applies to: elements with ’display: list-item’<br />

Inherited: yes<br />

Percentages: N/A<br />

Media: visual<br />

This property specifies appearance of the list item marker if ’list-style-image’<br />

has the value ’none’ or if the image pointed to by the URI cannot be displayed.<br />

The value ’none’ specifies no marker, otherwise there are three types of marker:<br />

glyphs, numbering systems, and alphabetic systems. Note. Numbered lists<br />

improve document accessibility by making lists easier to navigate.<br />

Glyphs are specified with disc, circle, and square. Their exact rendering<br />

depends on the user agent.<br />

Numbering systems are specified with:<br />

168

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!