tag:blogger.com,1999:blog-9318552.post116592453389146043..comments2008-03-28T12:52:33.151-07:00Comments on Web Usability & Website Optimization: Float:left does not work in Firefox/NetscapeDinesh Gajbhiyenoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-9318552.post-45868598139716323662007-06-08T04:02:00.000-07:002007-06-08T04:02:00.000-07:00Useful entry, thanks!Just one comment: "which I th...Useful entry, thanks!<BR/><BR/>Just one comment: "which I think is logically correct as if we don’t specify the width=100% that means we assume the browser considers it to be 100%."<BR/><BR/>What you typically see browsers doing if you don't specify a width on a (non-floated) div is 100% by a MARGIN box model, actually (which is ridiculously convenient!).<BR/><BR/>Or, in standards talk: The width of the auto-sized box is "100%-(2*padding)-(2*border)-(2*margin)".<BR/><BR/>Test it if you like - take a div with implicit width and alter the padding and see if it resizes... then do the same with a div you've explicitely told to be 100% wide. :)<BR/><BR/>I hope that helps!pinkgothichttp://www.blogger.com/profile/13608357100201065934noreply@blogger.comtag:blogger.com,1999:blog-9318552.post-54700378455904206582007-04-27T22:47:00.000-07:002007-04-27T22:47:00.000-07:00Of course float: left and float: right do work on ...Of course float: left and float: right do work on Firefox (i just dunno with netscape).<BR/><BR/>With regards to IE, to ensure floating works well, do not break codes into different lines.. as this is what destroys the layout in IE most of the time.sweetperceptionshttp://sweetperceptions.i.phnoreply@blogger.com