Day 13: Content (Formatting Visual Data), Unordered list, ordered list.

 unordered list:( change list square ur circle)

ul{

list-style-type: square;

list-style-position: inside;

}

li{

padding: 10px;

}

td{

border-style: solid;

}

________________________________________________

ordered list: (change number or letter)

ol{

list-style-type: lower-alpha;


1. The list-style-type Property

    • The type of list-item marker is specified by the list-style-type.
    • Syntax :
    • list-style-type: value;  
    • Example :
    • Code :

<!DOCTYPE html>

<html>

<head>

    <style>

        .ol1 {list-style-typelower-roman;}

        .ol2 {list-style-type:upper-roman;}

 

    </style>

</head>

<body>

    <ol class="ol1">

        <li>HTML</li>

        <li>CSS</li>

        <li>Javascript</li>

      </ol>

      <ol class="ol2">

        <li>Breakfast</li>

        <li>Lunch</li>

        <li>Dinner</li>

      </ol>

</body>

</html>

 

 

 

Output :

       

       

 

    • Try out the following values and observe the output : 
      • upper-roman
      • lower-alpha
      • upper-alpha
      • decimal-leading-zero
      • decimal
      • none


Comments

Popular posts from this blog

else-if condition in if-else statements: Concatenation in JavaScript :

Day 9: CSS - Font Formate

Day 28: CSS Animation, CSS Transition Animation Box size