Answers for "html list style type"

CSS
1

html list style type 1.1.2

ol {
  list-style-type: none;
  counter-reset: item;
  margin: 0;
  padding: 0;
}

ol > li {
  display: table;
  counter-increment: item;
  margin-bottom: 0.6em;
}

ol > li:before {
  content: counters(item, ".") ". ";
  display: table-cell;
  padding-right: 0.6em;    
}

li ol > li {
  margin: 0;
}

li ol > li:before {
  content: counters(item, ".") " ";
}
Posted by: Guest on September-21-2021
0

list-style-type

/*   Default value - disc               */
list-style-type: disc;

/*   No marker is shown                 */
list-style-type: none;

/*   Add marker as a circle | square    */
list-style-type: circle;
list-style-type: square;

/*   Add marker as a decimal            */ 
list-style-type: decimal;
list-style-type:  decimal-leading-zero;

/*   Global values                      */
list-style-type: inherit;
list-style-type: initial;
list-style-type: revert;
list-style-type: unset;

/*   More possible list-item markers   */
list-style-type:   armenian | georgian | lower-alpha | lower-greek | lower-latin | lower-roman | upper-alpha | upper-latin | upper-roman | trad-chinese-informal
Posted by: Guest on September-03-2021

Browse Popular Code Answers by Language