CSS list-style Property
Description
The list-style property is a shorthand that lets you control how list item markers are presented without setting each longhand individually. It bundles the marker type, any image used for the marker, and the marker’s placement relative to the list item. Using the shorthand is a convenient way to apply a cohesive marker style across a list while still allowing the underlying longhand properties — list-style-type, list-style-image, and list-style-position — to be adjusted separately when finer control is needed.
Visually, changes made by list-style affect both the marker glyph (bullet, number, or custom image) and how that glyph participates in layout. Marker placement can make markers sit inside the list item box or outside the principal content flow; this positioning interacts with box model properties such as padding-left and with the element’s formatting context (for example, its display type). Because markers are rendered alongside list item content, adjusting the shorthand can change text alignment, indentation, and wrapping behavior without altering the underlying DOM structure.
In practical use, the shorthand simplifies authoring and resetting list appearance: you can clear markers, switch between textual and image markers, or move markers inside the content with a single declaration rather than three. For accessibility and robustness, it’s important to consider fallbacks — image markers should have sensible non-image fallbacks — and to remember that more targeted styling (for example, per-item customization or styling the marker itself) can be achieved with the individual longhand properties or with the ::marker pseudo-element when finer styling is required.
Definition
- Initial value
- See individual properties
- Applies to
- List item elements
- Inherited
- Yes
- Computed value
- See individual properties
- Animatable
- No
- JavaScript syntax
- object.style.listStyle
Interactive Demo
- Australia
- New Zealand
- United States
- United Kingdom
- India
Syntax
list-style: <list-style-type> || <list-style-position> || <list-style-image>
Values
- <list-style-type>See list-style-type CSS property for values.
- <list-style-position>See list-style-position CSS property for values.
- <list-style-image>See list-style-image CSS property for values.
- inherit
Example
Browser Support
The following information will show you the current browser support for the CSS list-style property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
