Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.

View in English Always switch to English

list-style

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨julio de 2015⁩.

* Some parts of this feature may have varying levels of support.

Resumen

La propiedad de estilo de lista (list-style) permite definir de golpe todos los parámetros: list-style-type, list-style-image, y list-style-position.

Sintaxis

list-style: [ list-style-type || list-style-position || list-style-image ] | inherit

Valores

ver list-style-type.

ver list-style-image.

ver list-style-position.

Ejemplos

HTML

html
List 1 <ul class="one"> <li>List Item1</li> <li>List Item2</li> <li>List Item3</li> </ul> List 2 <ul class="two"> <li>List Item A</li> <li>List Item B</li> <li>List Item C</li> </ul> 

CSS

css
.one { list-style: circle; } .two { list-style: square inside; } 

Resultado

Especificaciones

Compatibilidad con navegadores

Ver también

list-style-type, list-style-image, list-style-position