Is there a good reason to override CSS list-style on both <ul> and <li> or just <li>?
Is there a good reason to override CSS list-style on both <ul> and <li>
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you look at the CSS spec, you’ll see that property is intended to style “elements with
display: list-item“.The property is inherited if not explicitly defined on the
<li>elements, so you should stick to applying the style to only<li>elements.