CSS List and ul

CSS list

You can use the power of CSS to style HTML lists. You can assign colors, create borders, backgrounds etc. around  lists to make it look according to other sections of website. Similarly you can apply CSS to li tag to apply css style inside the list items.

Following is a basic example of creating a CSS class and assigning it to ordered list.

CSS ul ui example

Following example applies CSS to unordered list. The ul style is created in CSS with border, background CSS properties where ul li is used to assign CSS style to list item (<li>).

Also see HTML div | HTML forms

Was this article helpful?

Related Articles

Leave A Comment?