Questions And Answers

More Tutorials

CSS Styling Lists

There are three different properties for styling list-items: list-style-type, list-style-image, and list-styleposition, which should be declared in that order. The default values are disc, outside, and none, respectively. Each property can be declared separately, or using the list-style shorthand property.

list-style-type defines the shape or type of bullet point used for each list-item.

Some of the acceptable values for list-style-type:

  • disc
  • circle
  • square
  • decimal
  • lower-roman
  • upper-roman
  • none

To use square bullet points for each list-item, for example, you would use the following property-value pair:

li {
 list-style-type: square;

The list-style-image property determines whether the list-item icon is set with an image, and accepts a value of none or a URL that points to an image.

li {
 list-style-image: url(images/bullet.png);

The list-style-position property defines where to position the list-item marker, and it accepts one of two values: "inside" or "outside".

li {
 list-style-position: inside  ;


In this page (written and validated by ) you learned about CSS Styling Lists . What's Next? If you are interested in completing CSS tutorial, your next topic will be learning about: CSS structure and formating.

Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue:

Share On:

Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using, you agree to have read and accepted our terms of use, cookies and privacy policy.