List Formatting
An element with a display property value of
list-item generates a principal box just as any other
block box. It will also generate an additional box for the list marker.
This box is generated outside the principal box and can’t be styled
independently in CSS2.1.
There are three properties that
apply only to elements with a display property value of
list-item, but properties like
margin-left and padding-left (in a
left-to-right reading environment) also affect the way in which list items
are rendered.
In addition to the available list item properties, generated content can also be useful for more advanced list numbering.
User-contributed notes
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.