change the color of a bullets in a list
Hello friends,
Some times we need to provide color in <ul> or <ol> List for that you can simply use the below code.
<ul>
<li style="color: red;"><span style="color: green">color the list</span></li>
</ul>
same code will be applicable for ordered list just replace <ul> with <ol>.
Here in above code <li style="color: red;"> will provide the color to bullet point as I have used red color it's showing red bullet in output.
And <span style="color: green"> this will provide the color to text in list.
Output:
- change color of text in list
0 Comment(s)