80 likes | 218 Views
In CSS, The list-style property is a shorthand property for setting list-style-type, list-style-image and list-style-position. Here is a breif introduction in this video from Attitude Academy.
E N D
Introduction to CSS List Styles - Lesson 8 Publisher : Attitude Academy
What is List-Style CSS • Lists are very helpful in conveying a set of either numbered or bulleted points. This chapter teaches you how to control list type, position, style, etc., using CSS • There are three choices for values: • List-style-type • List-style-image • List-style-position • (Note: Or you can control them individually)
LIST-STYLE • List Style Type • You can control the type of bullet ordered and unordered lists use with the list-style-type property • Values • disc • circle • square • decimal • lower-roman • upper-roman • lower-alpha • upper-alpha • none list-style-type:disc;
LIST-STYLE List Style Image list-style-image: url(path/images-nam.jpg,png,gif,etc); You can use an image for the bullet of unordered lists with the list-style property list-style-image: url(path/images-nam.jpg,png,gif,etc);
LIST-STYLE • List Style Position • You can control the position of ordered and unordered lists with the list-style-position property • There are two choices for values: • Inside • Outside