Having trouble with a complex web page (JavaScript application) where an included style sheet has the following rule:
.floatleft {
float: left;
margin-right: 10px;
}
There is a DIV
element within that layout:
<div class="floatleft" width="25%">
The issue is that in IE9 (quirks mode), the floatleft
class is being ignored. In fact, when checked using Firebug lite, it shows: This element has no style rules.
.
Other rules on the page are working fine and FireFox, Chrome display the correct layout.
Some additional points to note:
- This problem is not related to
float:left
as evenborder:1px solid red
doesn't show up. - The parent's parent of the DIV also has another working
class
attribute. - A child nested within the problematic DIV also has a functioning
class
attribute. - An inline style like
style="float:left"
works without any issues. - Removing the
width
attribute does not solve the problem. - You can find the full CSS code here: http://pastebin.com/1JAATMZD
Unfortunately, replicating the problem in a simplified test case is not possible (the same rule works fine in a different application) and providing a URL for you to view the issue is restricted due to access limitations.
I would appreciate any hints or tips on how to identify the problem. I am aware that Internet Explorer sometimes messes up with style rules unexpectedly.