My css code:
ol {
list-style-type: decimal;
}
My HTML code:
<ol>
<li>This is the first.</li>
<li>This is the second.</li>
</ol>
Why they don’t display the leading number?
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.
It’s the fiddle site itself causing it. If you use a DOM inspector on the list nodes, you’ll see that a Fiddle css stylesheet (normalize.css) is overriding your own stylesheet.
If you uncheck the “Normalized CSS” box on the left-hand side of the Fiddle window, the list elements will be numbered as expected.