jaandzia
0
Q:

list style type css


    ul.a {list-style-type: circle;}
ul.b {list-style-type: disc;}
ul.c {list-style-type: square;}

    
ol.d {list-style-type: armenian;}
ol.e {list-style-type: cjk-ideographic;}
ol.f {list-style-type: decimal;}

 ol.g {list-style-type: decimal-leading-zero;}
ol.h {list-style-type: georgian;}
ol.i {list-style-type: hebrew;}
ol.j {list-style-type: hiragana;}
ol.k {list-style-type: hiragana-iroha;}
ol.l {list-style-type: katakana;}
ol.m {list-style-type: katakana-iroha;}

 ol.n {list-style-type: lower-alpha;}
ol.o {list-style-type: lower-greek;}

 ol.p {list-style-type: lower-latin;}
ol.q {list-style-type: lower-roman;}

 ol.r {list-style-type: upper-alpha;}
ol.s {list-style-type: upper-greek;}
ol.t {list-style-type: upper-latin;}

 ol.u {list-style-type: upper-roman;}
ol.v {list-style-type: none;}

 ol.w {list-style-type: inherit;} 
2

  
    ul {
  list-style: none; /* Remove list bullets */
  padding: 0;
  margin: 0;
}

li { 
  padding-left: 16px; 
}

 
li:before {
  content: "•"; /* Insert content that looks like bullets */

      padding-right: 8px;
  color: blue; /* Or a color you prefer */
} 
1

/* Choose the symbol, image or numeric for the bullet points on the list: */

/* SYMBOLS and NUMERICS */

ul {
  list-style-type: square;
}

ol {
  list-style-type:decimal;
}


/* IMAGES: */

li {
  margin: 0;
  padding: 15px 0 15px 60px;
  list-style: none;
  background-image: url("path_to_image");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 30px;
}



/* Define the color of each bullet point on the list */

ul {
  list-style: none; /* Remove list bullets */
  padding: 0;
  margin: 0;
}

li {
  padding-left: 16px;
}

li:before {
  content: "•";         /* Insert content that looks like bullets */
  padding-right: 8px;
  color: blue; 
}
1
list-style: none;
0
<ul style="list-style-type:none">
	<li></li>
    <li></li>
</ul>
0
Specify all the list properties in one declaration:

 ul
 {

   list-style: square inside url("sqpurple.gif");

 }
 
The list-style property is a shorthand for the following properties:

  list-style-type
  list-style-position
  list-style-image
1
list-style applies to elements with display: list-item only – so by making your LI display: flex, you are removing the prerequisite for list-style to have any effect.
0

New to Communities?

Join the community