SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist FCC's Avatar
    Join Date
    May 2006
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some odd IE width percentage float drop

    Hello All,

    What is up with this IE float drop here:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <style type="text/css">
    #leftSide, #rightSide
    {
    	float: left;
    	width: 50%;
    }
    
    #rightSide
    {
    	width: 50%;
    	float: left;
    }
    </style>
    </head>
    
    <body>
    <div id='leftSide'>
    LEFT SIDE
    </div>
    
    <div id='rightSide'>
    WTF
    </div>
    
    </body>
    </html>
    If you change the width percentages to ANYTHING other than 50/50 there is no float drop whatsoever......what the heck is going on???

  2. #2
    Non-Member
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    4,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello

    rounding error
    * html #rightSide{width:49.9%;}


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •