wsg  

RE: [WSG] floats and ie7

Thierry Koblentz
Wed, 26 Mar 2008 22:21:26 -0700

> thanks thierry for your response.  there was no width set on the nav div and 
> that was the culprit. 
> after my bout with the nn4 style sheet i guess i was brain dead.  let me know 
> when you will be in alabama 

Hi Dwain,

It does not need a width, it needs "hasLayout" [1]. 
If it works with a width it is because "width" is one of the properties that 
triggers hasLayout in IE.
zoom does this, but also position:absolute, display:inline-block, height, float 
and a few others. 

In any case, keep "width" if you see that it works the way you want.

As a side note, if you want to fix the display issue in IE 6 (your images ), 
you'll need to insert the following:

#adgpix {width: 242px;}

imho, it is a good habit to always set a width on floats. I believe it used to 
be in the specs and I guess old browsers know that ;)


[1] http://www.satzansatz.de/cssd/onhavinglayout.html


-- 
Regards,
Thierry | http://www.TJKDesign.com






*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************