CSS List-Style-Image Property

CSS Tutorial  >  List  >  List-style-image

The list-style-image property is used to specify an image to use for the mark. The syntax is

list-style-image: url([image_url]);

For example, if our CSS code is

ul {

the following HTML code

  <li>First list for custom marker.
  <li>Second list for custom marker.

would render,

  • First list for custom marker.
  • Second list for custom marker.

Notice now the bullet points are replaced by red circles.

Next: CSS Table

Copyright © 2024   1keydata.com   All Rights Reserved   Privacy Policy   About   Contact

AdBlock Detected!

Our website is made possible by displaying ads to our visitors. Please supporting us by whitelisting our website.