Previous Message
Next Message

IE 6 Float Problem

Sent by Big John on 20 June 2004 04:04


Michael Kovalchick wrote:
> I'm having problems with floating a div in IE 6, the alignment is way 
> off and I don't know what numbers doing it. It works perfectly in 
> Firefox, but I'm guessing there is a workaround that I'm puzzled by.
> 
> The html is at http://gs.designbymk.com/v4/index.htm
> CSS @ http://gs.designbymk.com/v4/css/style.css

You are another victim of the IE float model problem,
which Opera emulates slavishly but Mozilla doesn't.

Read this stuff for a complete explaination:

http://positioniseverything.net/articles/float-bugs-1.html

http://positioniseverything.net/explorer/floatmodel.html

The thing that results in this browser variance is the 
widths on #sidebar and .sbcontent, which IE and Opera 
see as a green light to violate the float specs. I 
stongly advise you to remove those widths, and then you
won't need the large 'left' offset on #sidebar to make
Moz look good. The others will then also look the same 
as Moz. Also you can then reapply that commented left 
margin on #sidebar, which will then do what it is 
supposed to do.

I've gotten used to seeing M$ sabotage the web, but 
to see Opera imitating them is very unsettling to me.
IE is slowly but surely warping CSS into something 
stupid and difficult, just because no one can stop them.
Big John






=====
-- 
Perennial student + Impractical joker + CSS junkie = Big John
<http://www.positioniseverything.net>


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: