More CSS Topics: How to style lists using CSS

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


Lists are a very important part of many web pages.

CSS can style them using several properties.

list-style-type is used to set a predefined marker to be used by the list:

li {
  list-style-type: square;
}

We have lots of possible values, which you can see here https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type with examples of their appearance. Some of the most popular ones are disc, circle, square and none.

list-style-image is used to use a custom image as a marker, when a predefined marker is not appropriate:

li {
  list-style-image: url(list-image.png);
}

list-style-position lets you add the marker outside (the default) or inside of the list content, in the flow of the page rather than outside of it

li {
  list-style-position: inside;
}

The list-style shorthand property lets us specify all those properties in the same line:

li {
  list-style: url(list-image.png) inside;
}

Lessons in this unit:

0: Introduction
1: CSS Variables (Custom Properties)
2: Importing a CSS file using @import
3: CSS Inheritance
4: CSS Comments
5: CSS Normalizing
6: The CSS z-index property
7: The CSS float property and clearing
8: CSS Feature Queries
9: How to print your HTML with style
10: CSS Vendor Prefixes
11: ▶︎ How to style lists using CSS
12: Styling HTML Tables with CSS
13: CSS Error Handling
14: Introduction to PostCSS