On Thursday, 7 December 2006 at 1:13 p.m Sandra Clark wrote:
> Jake I answered your question earlier, but I don't know if it 
> ever went through.

I didn't see it either, but it's not in my spam box!

> To contain something that is floated, float the parent as well. 

Indeed. Be aware that using this method causes the container to shrink
wrap to the size of its children (the workaround is to add an explicit
width, which you already have). Also, you'll have to add some form of
clear rule immediately following the container if you have anything
below it.

My personal favourite is the overflow: auto method (once again applied
to the container) although if you wish to support IE Mac then you'll
need to use a filter to show that browser overflow: hidden (or you'll
get scrollbars no matter what). You also need to add a width OR a height
to the container to trigger hasLayout in IE6 and below, but all this
isn't quite as bad as it probably sounds (* html contentWrap {height:
1%} will do the job). 

Incidentally, the reason removing the height you had set on the Nav
works is because you are actually already using another quite popular
method - an additional clearing div near the end of your code, and that
will work fine.  If you go for one of the above solutions you can
happily remove it, although testing is obviously required.  However,
since you seem happy enough with this approach, you might want to read
http://positioniseverything.net/easyclearing.html (still quite relevant)
which will help explain things better than I ever could. 

HTH
Mark

-- 
This message has been scanned for viruses and dangerous
content by ISPNZ's automated virus detection system,
and is believed to be clean.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263103
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to