I've run into a weird problem and i'm not sure if it's a bug in the
browsers or if this is part of the standard.
A simple example:
#x {
min-width: 600px;
}
#y {
position:absolu te; top:0px; right:0px; margin-left:600px;
}
<div id="x">This is a test</div>
<div id="y">This is the main area</div>
This works great, and does what I expect, namely stopping the right div
from moving over the minimum size area of the left div.
However, if I add "width: 215px" to #y, then the margin-left attribute
appears to be ignored. It does this in both IE and Firebird.
Can anyone shed some light on this, and perhaps offer a solution?
browsers or if this is part of the standard.
A simple example:
#x {
min-width: 600px;
}
#y {
position:absolu te; top:0px; right:0px; margin-left:600px;
}
<div id="x">This is a test</div>
<div id="y">This is the main area</div>
This works great, and does what I expect, namely stopping the right div
from moving over the minimum size area of the left div.
However, if I add "width: 215px" to #y, then the margin-left attribute
appears to be ignored. It does this in both IE and Firebird.
Can anyone shed some light on this, and perhaps offer a solution?
Comment