[thelist] image in <p> (was "random image...")

aardvark roselli at earthlink.net
Mon Jul 3 09:13:05 CDT 2000


> -----Original Message-----
> From: Erika Meyer
> 
> you may be right, but I had some bad experiences 
> with NN4 and images 
> in the <p> tag back in '99.  actually, I had bad 
> experiences with NN4 
> and images in a <div> as well: 
> http://haughey.com/csshorrors/ (image 
> float  problem)
> 
> but lately it's worked for me.  (*knocks on 
> wood*) (maybe NN4.7 is better now?)

my guess is that it's related to the 'line-height' attribute in CSS... try the same page 
without it, and it should work...

at least, that's what all my testing determined...

> Why is it bad to use <div></div>?

it's not, it just offers no contextual indicator whatsoever... a <p> at least says, 
"hey, i'm a paragraph, treat me like one," while a <div> says "hey, i'ma  block-level 
element of a generic nature, i have no idea what purpose i serve, but the CSS 
will at least make me look pretty..."

to me it's akin to using <span> instead of <strong>...





More information about the thelist mailing list