I have some CSS that behaves perfectly in Firefox but not in IE 6.x. I'm
hoping someone has a suggestion to fix the problem.
This is the CSS i'm using:
..content {
position:relati ve;
margin-left:10%;
margin-right:10%;
width:80%;
background-color:#66CCFF; /* debug */
border-right:2px solid #B69C2F;
border-left:2px solid #B69C2F;
}
..leftNavColumn {
margin-left:0;
float:left;
padding:0;
border-right:4px solid #B69C2F;
width:200px;
background-color:#DDDDDD;
}
..mainColumn {
width:100%;
background-color:#99CC00;
}
-------[ HTML ]--------
<div class="contentW rapper">
<div class="content" >
<div class="leftNavC olumn">
</div><div class="mainColu mn">This is a test...</div>
</div>
-------------------------
In Firefox mainColumn takes up 100% of the remainder of its container and
resizes when the container is resized. In IE the same CSS wraps the
mainColumn div to the next line below the leftNavColumn. Does anybody have a
fix for this? I don't really mind too much if the fix breaks the Firefox
implementation because i'm using a browser detection script to implement
browser specific styles.
hoping someone has a suggestion to fix the problem.
This is the CSS i'm using:
..content {
position:relati ve;
margin-left:10%;
margin-right:10%;
width:80%;
background-color:#66CCFF; /* debug */
border-right:2px solid #B69C2F;
border-left:2px solid #B69C2F;
}
..leftNavColumn {
margin-left:0;
float:left;
padding:0;
border-right:4px solid #B69C2F;
width:200px;
background-color:#DDDDDD;
}
..mainColumn {
width:100%;
background-color:#99CC00;
}
-------[ HTML ]--------
<div class="contentW rapper">
<div class="content" >
<div class="leftNavC olumn">
</div><div class="mainColu mn">This is a test...</div>
</div>
-------------------------
In Firefox mainColumn takes up 100% of the remainder of its container and
resizes when the container is resized. In IE the same CSS wraps the
mainColumn div to the next line below the leftNavColumn. Does anybody have a
fix for this? I don't really mind too much if the fix breaks the Firefox
implementation because i'm using a browser detection script to implement
browser specific styles.
Comment