--- title: list-style slug: Web/CSS/list-style tags: - CSS - 'CSS:Referencias' - Referencia_CSS - Todas_las_Categorías translation_of: Web/CSS/list-style ---

{{ CSSRef() }}

Resumen

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

Sintaxis

list-style: {{ mediawiki.external(' list-style-type || list-style-position || list-style-image ') }} | inherit

Valores

ver {{ Cssxref("list-style-type", "list-style-type") }}.
ver {{ Cssxref("list-style-image", "list-style-image") }}.
ver {{ Cssxref("list-style-position", "list-style-position") }}.

Ejemplos

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

.one {
  list-style: circle;
}

.two {
  list-style: square inside;
}

Resultado

{{EmbedLiveSample('Ejemplos')}}

Especificaciones

Compatibilidad con navegadores

Ver también

{{ Cssxref("list-style-type") }}, {{ Cssxref("list-style-image") }}, {{ Cssxref("list-style-position")}}