I want to write a CSS selector that selects all li elements within a ul element in a document but I don't know how that would be done. Can you help?
ul > li {
/* css styles go here */
}
or
ul li {
/* css styles go here */
}
the first selects only direct children the second selects all li
nested within an ul
.
This should work:
ul li { /*css here */}
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