Hi,
I'm trying to put several paragraphs across a page without using a table.
So I'm defining different classes.
CSS
p.spirit1 {
position: absolute;
top: 0px;
left: 0px;
width: 200px;
margin-top: 0;
text-align: right;
}
p.spirit2 {
position: absolute;
top: 0px;
left: 207px;
width: 200px;
margin-top: 0;
text-align: left;
}
HTML
<p class="spirit1">spirit and so on</p>
<p class="spirit2">and so forth
<br>and so forth</p>
That works fine until I add the following tag to make some of text darker
.italicdark { font-style: italic; color: #333333;}
<p class="spirit1"><div class="italicdark">spirit</div>and so on</p>
And the following tag to make the second line taller:
.tallline {line-height: 0.1em}
<p class="spirit2">and so forth
<br><div class="tallline">and so forth</div></p>
Then nothing is in place anymore and I get closing errors in validator about having an extra </p> closer, when there really is just one after the </div> closer.
I know something is wrong but I've searched all over the web and really can't figure it out...
THANKS!



Reply With Quote

Bookmarks