---
title: Text lists
description: Text lists are used for ordered and unordered lists in text content.
since: 2025.09.1
new: true
menuSortOrder: 40
---
Text lists are used for ordered and unordered lists in text content.
The class `env-text-list` is used to style both types of lists and must be applied to the `
` or `` element.
List style, paddings and margins may be customized [using the text list variables](/utils/css-variables/#text-lists).
Nested lists do not get top or bottom margins, to prevent extra spacing inside the list.
## Examples
### Unordered list
```html
- 100 g butter
- 1½ dl milk
- 2 eggs
- 2 dl granulated sugar
- 3 dl all-purpose flour
- 1½ tsp baking powder
```
### Ordered list
```html
- Preheat the oven to 175°C.
- Grease and flour a bundt cake pan of about 1.5 liters.
- Melt the butter in a saucepan and add the milk.
-
Whisk the eggs and sugar until light and fluffy, then add the butter and
milk mixture.
-
Stir in the flour mixed with baking powder and pour the batter into the
prepared pan.
- Bake in the lower part of the oven for about 35 minutes.
```
### Nested lists
```html
- first item
-
second item
- second item first subitem
-
second item second subitem
- second item second subitem first sub-subitem
- second item second subitem second sub-subitem
- second item second subitem third sub-subitem
- second item third subitem
- third item
```