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




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