Answers for "list item marker css"

CSS
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
0

css li marker

<!DOCTYPE html>
<html>
<head>
   <style>
	ul.circle{ 
      list-style-type: circle;
    }
    ul.square{
      list-style-type: square;
    }
    ol.lower-alpha{ 
      list-style-type: lower-alpha;
    }
    ol.upper-roman{
      list-style-type: upper-roman;
    }
   </style>
</head>
<body>
    <h2>list-style-type: circle</h2>
	<ul class="circle">
	    <li>Apple</li>
	    <li>Mango</li>
	    <li>orange</li>
	</ul>
	<h2>list-style-type: square</h2>
	<ul class="square">
	    <li>Apple</li>
	    <li>Mango</li>
	    <li>orange</li>
	</ul>
	<h2>list-style-type: lower-alpha</h2>
	<ol class="lower-alpha">
	    <li>Apple</li>
	    <li>Mango</li>
	    <li>orange</li>
	</ol>
	<h2>list-style-type: upper-roman</h2>
	<ol class="upper-roman">
	    <li>Apple</li>
	    <li>Mango</li>
	    <li>orange</li>
	</ol>
</body>
</html>
Posted by: Guest on September-05-2021

Browse Popular Code Answers by Language