Specify All List Properties in a Single Expression with CSS



The list-style property allows you to specify all the list properties into a single expression.

Example

You can try to run the following code to list all properties like list-style, type, etc in one line:

<html>
   <head>
   </head>
   <body>
      <ul style = "list-style: inside circle;">
         <li>Laptop</li>
         <li>Desktop System</li>
      </ul>
      <ol style = "list-style: outside lower-alpha;">
         <li>Laptop</li>
         <li>Desktop System</li>
      </ol>
   </body>
</html>
Updated on: 2020-02-03T06:58:11+05:30

97 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements