CSS ::marker Selector

❮ Previous Selectors Next ❯

Example

.example1 li::marker {
  color: red;
  font-size: 1.5em;
}

.example2 li::marker {
  content: '✝ ';
  font-size: 1.2em
}

Meaning

The ::marker selector selects the marker box of a list item, which typically contains a bullet or number.

It works on any element or pseudo-element set to display: list-item;, such as the <li> and <summary> elements.

Version: CSS3




Standard Syntax

::marker {
  css declarations;
}



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







Allowable properties

Only certain CSS properties can be used in a rule with ::marker as a selector:

❮ Previous Selectors Next ❯