Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE9 CSS float:right Bug?

Here are my styles:

Parent container:

div.musicContainer {
        width:820px;
        height:54px;
        margin-bottom:20px;
}

Child containers:

div.hardcorePlayer {
    width:400px;
    float:left;
    border:none;
    background-color:#996600;
}

div.feedbackPlayer {
    width:340px;
    float:right;
    border:none;
    background-color:#996600;
}

The issue is: i installed IE9 yesterday and while IE8 was displaying fine well now the feedbackPlayer div is not lined up to the right boundary any longer. it displays fine in other browsers as before.

is this a IE9 bug?

IE9 image:

IE9 image

other browser image:

else

thank you very much for your thoughts on this.

website url: www.guygar.com/guygar.html

NOTE: here is the new CSS with the reset data. Have i done something wrong?

like image 436
iTEgg Avatar asked Jan 24 '26 13:01

iTEgg


2 Answers

Maybe you should try to reset the css so that all browsers start out with the same defaults (like padding, margin ect.)

You can find a css-reset and more information here: http://meyerweb.com/eric/tools/css/reset/

Edit: Related question: https://stackoverflow.com/questions/116754/best-css-reset

like image 102
daniel.herken Avatar answered Jan 26 '26 04:01

daniel.herken


This line is in flash.

Change body background to white, and .musicContainer to red. You will see that html is not failing. In my opinion it is a flash like bug.

Try zooming in FF ( I tested in 5.0) on few zooms there is also same gap.

like image 21
pmaruszczyk Avatar answered Jan 26 '26 05:01

pmaruszczyk