Horje

How to chnage HTML List Element Color

See our example.
index.html
Example: HTML
<style>
li {
    overflow: hidden;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  line-height: 1.5;
  text-indent: -30px;
  padding: 8px 0 8px 30px;
}

li:before {
  float: left;
  display: block;
  content: '\2605';
  color: green;
  margin: 0 30px 0 0;
}
</style>

Output should be:

How to chnage HTML List Element Color



Single Articles
How to chnage HTML List Element ColorCSS List


Related Articles
How to hide HTML li element with css CSS List
How to change HTML list element with star CSS CSS List

Type:
Html
Category:
Web Tutorial
Sub Category:
CSS List
Uploaded by:
Admin