`<display-listitem>` CSS type
The list-item keyword causes the element to generate a ::marker pseudo-element with the content specified by its list-style properties (for example a bullet point) together with a principal box of the specified type for its own contents.
The `list-item` keyword causes the element to generate a `::marker` pseudo-element with the content specified by its list-style properties (for example a bullet point) together with a principal box of the specified type for its own contents.
## Syntax
A single value of `list-item` will cause the element to behave like a list item. This can be used together with list-style-type and list-style-position.
`list-item` can also be combined with any <display-outside> keyword and the `flow` or `flow-root` <display-inside> keywords.
> [!NOTE]
> In browsers that support the two-value syntax, if no inner value is specified it will default to `flow`. If no outer value is specified, the principal box will have an outer display type of `block`.
## Formal syntax
## Examples
### HTML
```html
<div class="fake-list">I will display as a list item</div>
```
### CSS
```css
.fake-list {
display: list-item;
list-style-position: inside;
}
```
### Result
100%
## Specifications
## Browser compatibility
## See also
- display
- <display-outside>
- <display-inside>
- <display-internal>
- <display-box>
- <display-legacy>
Cite this
"` ` CSS type". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/display-listitem JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy