How do I define a style for an li id? Does it work the same way as an li style?
e.g.
<li id="news" class="section_wrapper"></li>
Use the ID selector:
#news {
color: red;
}
If you want higher specificity, you can combine both the element and ID selectors:
li#news {
color: red;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With