Lists

Property Value Description N.N. I.E.
list-style-type: none
disc
circle
square
decimal
decimal-leading-zero
lower-roman
upper-roman
lower-alpha
upper-alpha
lower-greek
lower-latin
upper-latin
hebrew
armenian
georgian
cjk-ideographic
hiragana
katakana
hiragana-iroha
katakana-iroha
Sets the type for the list item markers 4.0 4.0
list-style-image: none
url
Sets an image for the list item markers 6.0 4.0
list-style-position: inside
outside
Sets the position of the list item markers 6.0 4.0
list-style: list-style-type
list-style-position
list-style-image
Shortcut to set all three list styles 6.0 4.0
  • N.N = Netscape Navigator ®
  • I.E. = Internet Explorer ®
  • Click the "property" to jump to that section.
<ul>
<li style="list-style-type:disc;">disc</li>
</ul>
  1. decimal
  2. decimal-leading-zero
  3. lower-roman
  4. upper-roman
  5. lower-alpha
  6. upper-alpha
  7. lower-greek
  8. lower-latin
  9. upper-latin
  10. hebrew
  11. armenian
  12. georgian
  13. cjk-ideographic
  14. hiragana
  15. katakana
  16. hiragana-iroha
  17. katakana-iroha

I basically used the code above to create the list below it. I used an inline style for each list item so each list item marker could demonstrate the style of marker defined in the list. If it doesn't, then your browser probably does't support that type of marker. If you would like to see what each one looks like, open this page in either Netscape or Mozilla and each should be displayed properly.

Notice that the list contains markers for both ordered and unordered list. The shapes are for an unordered list and numbers and letters for an ordered list. This style will work with ordered and unordered lists but not for a definition list since it has no markers. Normally you would probably want to create a style for the entire list by using the tags <ol> or <ul> as the selector. Like so:

ol{
list-style-type:upper-roman;
}
OR
ul{
list-style-type:disk;
}

Don't like any of these markers? Then continue on to the next page to see how to add your own custom markers.

Support us by supporting our advertisers!



© 2004 Terry Lamrouex