In another thread, I read about mixing font tags and CSS, especially that this is considered messy.
My problem is that, so far, I did not manage to create a pure CSS layout that was really accurate to the single pixel afterwards. Example: I was not able to specify the exact indent after a header tag, <h1> etc, such as that it looked the same in all popular browsers. Moreover, I had different blocks of "plain text" that had to be displayed differently (article text, comment text, etc). That is, I still needed some markup for these text blocks in order to assign them a specific layout.
A solution which I found rather elegant was using different CSS classes:
Code:
<!-- css -->
.title {font-weight: bold; font-size: 16pt; margin-bottom: 10px}
.text {font-size: 11pt}
..
<!-- body -->
<font class="title">My title</font>
<font class="text">Blah, blah</font>
Using these font tags, I still have all my layout definitions in one single file. Clean, isn't it? Or had I rather use <div> tags?
And still, I wonder if I have misunderstood the CSS concept.
Any opinions? I'd really like to discuss this and hear what some CSS-experienced people have to say.