list item elements

list item elements

CSS allows to create new type of lists to define the visual formatting of the lists. Custom lists can be created by setting the value of "display" property of an element to list-item.

list-style-type

The list-style-type property is used to define the leading symbol that is rendered for each list item.

The possible values are.

disc | circle | square
decimal | decimal-leadin-zero
lower-roman | upper-roman
lower-greek
lower-alpha | upper-alpha
lower-latin | upper-latin
herbian | Armenian | Georgian
cjk-ideographic | hiragana | katakana | hirogana-iroha | katokana-iroha
none
list-style-image

The list-style-image property allows to define a leading image that is rendered for each list item.

The possible values are.

<url>e.g. url("fellas.jpg")
none
list-style-position

The list-style-position property allows to define the position (inside or outside of the list item box) for the leading symbol/ image that is rendered for each list item.

The possible values are.

inside
outside (default value)
list-style

The list-style property is the shorthand to define the style of the list item.

The possible values are.

<list-style-type> <list-style-position> <list-style-image>
Note
If the image file is missing, the leading symbol will be rendered.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +