float:left behavior in FF vs IE ??
Posted: Thu Mar 08, 2007 2:12 am
feyd | Please use
Thanx !
/Roger
Sweden
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi people !
In this example Box2 appears below Box1 in FF (and gets no background color ??). Feels like i am missing something obvious but i been ripping my hair for a day now to understand FLOAT. I would expect the boxes to appear like in IE in this case.
Please shine some light on this for me.
Se example here [url]http://www.kallteknik.se/test/test.htm[/url]. In Test2 i have increased the width to 300 and then i works like expected...Uhhh
[syntax="html"]<div class="Test1" style="float:left;
margin:0px;
padding:0px;
height:50px;
width:100px;
background:#AAFFDD;">
Box 1</div>
<div class="Test2" style="margin:0px;
padding:0px;
height:50px;
width:100px;
background:#AADDFF;">
Box 2</div>/Roger
Sweden
feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]