forum

Home / DeveloperSection / Forums / I have HTML and CSS like this to which i want to make design.

I have HTML and CSS like this to which i want to make design.

Anonymous User187109-May-2013
Hi Expert!

How to set red color for number and black color for li content. ol used for number and li for text content. 
My line of code as following.

CSS

ol li 
{
list-style-type: decimal-leading-zero;
}

HTML

<ol>
<li>One</li>
<li>Two</li>
<li>Three
<ol>
<li>Three.One</li>
<li>Three.Two</li>
</ol>
</li>
<li>Four</li>
</ol>

Please help me! Thanks in advance!

Updated on 09-May-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By