View Single Post
Old 01-19-2012, 09:43 AM   #5
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
Quote:
Originally Posted by Fabe View Post
Here is my CSS coding:

p {
font-family : serif;
line-height: 1.5em;
font-size: 1em;
text-align: left
}

p.num {
list-style-type:numeric;
}

Here is the result:

Regular paragraph text, formatted correctly.

Text Text

Text Text

Text Text

Text Text

Regular paragraph text, formatted correctly.

Here is a representative sample of HTML coding in the document:

<p>Regular paragraph text, formatted correctly.</p>

<ol class="num">
<li>Text Text</li>

<li>Text Text</li>

<li>Text Text</li>

<li>Text Text</li>
</ol>

<p>Regular paragraph text, formatted correctly.</p>
Well, you just defined the class num only for p-elements. So either deéte the p to have a class .num only effexcting every element or write a seperate class named ol.num.
huebi is offline   Reply With Quote