Previous Message
Next Message

Re: [css-d] RE: float right bug

Sent by Big John on 14 August 2002 05:05


Adam Wodon wrote:
-snip-
> I want left and right at 150px each, and the middle
> to be the rest.  So I can't set a width on the middle.  
> Not even a percentage width will work, because the 
> percentage will change depending on how much real 
> estate is left over.  You can't set a CSS value of:
> "100% minus 300px"

IE is SO much fun...
 
> ** my question about the behavior of the background of 
> the float container still stands.

Well okay. The fact is that floats are supposed to have
NO effect on ANY block elements whatsoever. Inline 
elements do however avoid the float, even when contained 
within a block element. So text and images will flow around 
the float, but the block elements behave as tho the float
were not there at all. Watch out tho. If a block element
next to a float is given a 'width', even 'width: 100%;',
IE alters its behavior, treating the space beside the float
as tho it were the entire viewport! 

Needless to say, this is quite irritating, unless you only
code for IE. (mmmm, tempting... )

I'm currently writing a demo on this, but it's anybody's
guess when I'll actually finish it.
Big John

=====
"What the world needs is a good bug ring"--Big John
<http://users.rraz.net/mc_on_the_rocks/testpage/pie.html>

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
Previous Message
Next Message

Message thread: