How to apply default list styling with CSS?

Spread the love

To apply default list styling with CSS, we set various properties.

For instance, we write

ul {
  list-style-type: disc;
  list-style-position: inside;
}
ol {
  list-style-type: decimal;
  list-style-position: inside;
}
ul ul,
ol ul {
  list-style-type: circle;
  list-style-position: inside;
  margin-left: 15px;
}
ol ol,
ul ol {
  list-style-type: lower-latin;
  list-style-position: inside;
  margin-left: 15px;
}

to set the list-style-type, list-stype-position and margin properties to set them back to their default styles.

Leave a Reply

Your email address will not be published. Required fields are marked *