Should the list styling properties go on the ul
element or the li
elements?
I have never seen lists with different little icons to the left of them (within the same ul), but I have seen the property used on both elements before in my travels.
Which one is correct?
It should go on the ul/ol, cf. http://www.w3.org/TR/CSS2/generate.html#list-style
Edit: Near the bottom ( http://www.w3.org/TR/CSS2/generate.html#propdef-list-style ) you will find a discussion of the issue. It boils down to:
Inheritance will transfer the 'list-style' values from OL and UL elements to LI elements. This is the recommended way to specify list style information.
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