Merike
11-20-2004, 05:35 PM
Right now my blog looks like that:
<div class="title">Blog</div>
<p><div class="title">Date</div>
Entry</p>
<p><div class="title">Date</div>
Entry</p>
The problem is that it won't validate. It can't stand <div> in <p>.
But if I move <p> after <div> then there will be empty line between date and entry which I don't want.
I was thinking of joining date and entry into one <p> without a div. Then I could put <b> tags around date but I don't want formatting in html. So, how can I have date formatted with css as I now have with class?
<div class="title">Blog</div>
<p><div class="title">Date</div>
Entry</p>
<p><div class="title">Date</div>
Entry</p>
The problem is that it won't validate. It can't stand <div> in <p>.
But if I move <p> after <div> then there will be empty line between date and entry which I don't want.
I was thinking of joining date and entry into one <p> without a div. Then I could put <b> tags around date but I don't want formatting in html. So, how can I have date formatted with css as I now have with class?