Specify all the list properties into a single expression with CSS

JavascriptWeb DevelopmentFront End Scripts

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>
raja
Published on 17-Apr-2018 17:26:06
Advertisements