Home·CSS properties

list-style

Lists

Sets the marker type, position and image in one line; none removes the marker.

How to write itlist-style: none;
Common valuesnone, disc, decimal inside
InheritedYes — children receive it
Sets all oflist-style-type, list-style-position, list-style-image
CategoryLists

How to read this

  • An inherited property only needs writing once on the parent — every child picks it up. Most text properties work this way.
  • A shorthand resets whatever you leave out. Writing background: red alone also wipes a background image you set earlier.
  • When rules collide, the more specific selector wins; only when specificity ties does source order decide.
  • Animate transform and opacity for smoothness. Changing width or top forces the layout to be recalculated.

Frequently asked questions

Q. What is the CSS list-style property?

Sets the marker type, position and image in one line; none removes the marker.

Q. How do you write list-style?

As list-style: none; Common values include none, disc, decimal inside.

Q. Is list-style inherited?

Yes. Set it once on the parent and every child uses the same value without repeating it.

Q. What does the list-style shorthand set?

list-style-type, list-style-position, list-style-image — and anything you leave out resets to its default.

Properties in the same group

Reference docs