How can i use color attribute in ordered list | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i use color attribute in ordered list

How can i use color attribute in ordered list

30th Jan 2017, 4:53 AM
sharman khatkar
1 Answer
+ 1
ol { color:red; } to target all the ordered list li { color:red; } to target each line of a list li:nth-child(x) { color:red; } to target the xth line of a list Combine with specifics selectors ( #id or .class ) to target specific list ^^
30th Jan 2017, 7:07 AM
visph
visph - avatar