css 3

Icon

A comprehensive CSS 3 reference guide, tutorial, and blog
Are you a CSS expert? Want to contribute? Contact us

CSS LIST-STYLE

This shorthand property is used when the author wishes to change the default display characteristics of list-markers in HTML list structures. An author can specify location of the marker, a graphic to be used and/or a standard set of symbols. Keywords may come in any order, but using multiple keywords that control the same behavior is not allowed. If a [list-style-image] is specified for the list marker, it will be used in place of any [list-style-type] also specified. Nevertheless, a [list-style-type] should always be specified in the event the [list-style-image] can not be loaded. A value of ‘none’ for the ‘list-style’ property should set both ‘list-style-type’ and ‘list-style-image’ to ‘none.’

 

Example

ul { list-style: square inside url(http://www.foo.com/bullet.gif) } 

<ul><li style=”list-style: square inside url(http://www.example.com/pic.gif)”>content</li></ul>

 

Possible Values

Value Description
inherit Explicitly sets the value of this property to that of the parent
[list-style-type] See the property page for ‘list-style-type’ for more details on syntax and allowed values
[list-style-position] See the property page for ‘list-style-position’ for more details on syntax and allowed values
[list-style-image] See the property page for ‘list-style-image’ for allowed values

 

 

2 Responses

  1. Jack says:

    Hi folks

    Just starting to explore CSS3 … but unable to find a workaround for ordered lists that break off and then continue their numbering, eg:

    <ol start=”4″>

    and

    <li value=”9″>

    Important for HTML presentation of block quotes of legal documents etc.

    Can you help?
    Jack

  2. Peter says:

    Jack,

    If you’re still looking for an answer, try the counter-increment and counter-reset properties. A good article can be found at:

    http://dev.opera.com/articles/view/automatic-numbering-with-css-counters/

Leave a Reply

Pages

Sponsors

$100 PSD to XHTML. CONTACT US FOR MORE INFORMATION


CSS3.com



Please help CSS3.com stay alive and running

Bad Behavior has blocked 1074 access attempts in the last 7 days.