The list-style-position property specifies the position of the list item marker in relation to the content of the list item. It is often more convenient to use the shorthand list-style.

  • Initial valueoutside
  • Applies toList item elements
  • InheritedYes
  • MediaVisual
  • Computed valueSpecified value
  • AnimatableNo
  • CSS VersionCSS1, CSS2, CSS3
  • JavaScript syntaxobject.style.listStylePosition
Formal syntax: inside | hanging | outside

list-style-position: inside;
list-style-position: hanging;
list-style-position: inside;
  • insideMarker is placed inside the text, and any wrapping text is aligned under the marker.
  • hangingAs inside, except the marker is instead placed immediately before the first text or significant whitespace in the list item or its children.
  • outsideMarker is placed outside the list item, and any wrapping text is not aligned under the marker.
  • inherit
.class {
   list-style-position: inside;
}
1+Firefox6+Explorer1+Chrome1+Safari8+Opera


Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.