Sent by Kevin Cannon on 5 March 2003 16:04
Hey,
Many people have expressed times how they find the box model counter intuitive
and annoying. I know there's two options in CSS3 but since that's not quite
here yet we'll have to do.
Basically what i've found myself doing of late is this:
<div id="news">
<p>this is a headline</p>
or <span class="headline">blahblaah</span>
</div>
I've been adding padding to the elements inside it sinc ethey generally don't
have a defined width, that's what the parent div is for.
Just thought i'd share that little tip for you since i've found it offers me a
lot more flexibility.
g'luck,
- Kevin
p.s. Doesn't anyone know any good tutorials for CSS's pseduo elements:
stuff like .first-letter & useing the > < and other things like that.