GeoffKnagge.com

Classification properties

These advanced properties classify elements into categories, as is seen below...

display

Valueblock | inline | list-item | none
Initialblock
Used withall elements
Inheritedno

This property describes how / if an element is displayed on the screen or printed page, specifying whether it is treated as a block (line breaks before and after, other elements within it), inline (everything else), list (list markers inserted), or not displayed at all.

white-space

Valuenormal | pre | nowrap
Initialnormal
Used withblock elements
InheritedYes

Specifies how white spaces (line feeds, tabs, etc) are displayed : normally (they are ignored), like the <pre> HTML element, or with line wrapping only done with <BR> elements.

list-style-type

Valuedisc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none
Initialdisc
Used withlist-item elements
InheritedYes

Specifies what type of marker character is used in lists.
  OL { list-style-type: decimal }       /* 1 2 3 4 5 etc. */
  OL { list-style-type: lower-alpha }   /* a b c d e etc. */
  OL { list-style-type: lower-roman }   /* i ii iii iv v etc. */

list-style-image

Valueurl | none
Initialnone
Used withlist-item elements
InheritedYes

Specifies an image that will be used as the marker in lists.

list-style-position

Valueinside | outside
Initialoutside
Used withlist-item elements
InheritedYes

list-style

Valuekeyword || position || url
Used withlist-item elements
InheritedYes
ExampleUL { list-style: upper-roman inside }

Used to set 'list-style-type', 'list-style-image' and 'list-style-position' together.
(C)opyright, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy.