O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting All List-Style Properties at Once

Just as it has shorthand properties for background, border, font, outline, and more, CSS has one for the list-style features Image.

Image This style rule is equivalent to setting the list-style-position to inside and the list-style-type to circle. It’s just shorter. You may also specify the list-style-image in the shorthand (see the first tip).

li {     list-style: inside circle;}

Image The result is the same as in in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required