CSS List Properties
CSS List Properties
The List in CSS specifies the listing of the contents or items in a particular
manner i.e., it can either be organized orderly or unordered way, which helps
to make a clean webpage. It can be used to arrange the huge with a variety of
content as they are flexible and easy to manage. The default style for the list
is borderless. The list can be
categorized into 2 types:
Unordered List:
In unordered lists, the list items are marked with bullets i.e. small black
circles by default.
Ordered List:
In ordered
lists, the list items are marked with numbers and an alphabet.
Property |
Description |
list-style |
Sets all the
properties for a list in one declaration |
list-style-image |
Specifies an
image as the list-item marker |
list-style-position |
Specifies
where to place the list-item marker |
list-style-type |
Specifies
the type of list-item marker |
Ex-1
CSS Code
Output
Ex.2
CSS Code
Output
Ex-3
CSS Code
Output
Ex-4
CSS Code
Output
No comments: