[thelist] IE6 and it's box model....

Chris W. Parker cparker at swatgear.com
Thu Jul 10 19:05:54 CDT 2003


ted serbinski <mailto:tss24 at cornell.edu> wrote:

> >   At your request, it can be found at the following URL.
> > 
> > http://www.joeqent.com/ie.htm
> 
> Ah, the dreaded white space problem.

I'm wondering, what happens when you put the <div><img></div> all on one line?

I'm not sure about other browsers but I know IE will a lot of times add a blank character (possibly a space?) at the end of an element/word when the line wraps.

For example:

<p>
That
Text
Would
Print
Like
This
</p>

would look like this in a browser:

That Text Would Print Like This

It's possible that this is what's happening in your case. I imagine that other browsers might be smarter about it (i.e. they only add a space after a word if the text wraps before the surrounding tag is closed and not after an element/tag itself.

This might solve your problem and it shouldn't change the look in any other browsers either.



Chris.


More information about the thelist mailing list