Answers for "css change list bullet"

CSS
0

change bullet color css list

ul {
  list-style: none; /* Remove default bullets */
}

ul li::before {
  
  content: "2022";  /* Add content: 2022 is the CSS Code/unicode for a 
  bullet */
  color: red; /* Change the color */
  font-weight: 
  bold; /* If you want it to be bold */
  display: inline-block; /* 
  Needed to add space between the bullet and the text */ 
  width: 1em; 
  /* Also needed for space (tweak if needed) */
  margin-left: -1em; /* 
  Also needed for space (tweak if needed) */
}
Posted by: Guest on April-05-2021
0

css style list

/* 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; 
}
Posted by: Guest on August-05-2020

Browse Popular Code Answers by Language