I hate IE. Microsoft only make nothing but inferio craps.
Here is a very simple hack to fix the IE 5 and 6 box model bug that works for me.
div.left {
background-image: url("dimension.gif");
background-repeat: no-repeat;
padding: 10px;
padding-color: #00ff00;
border: 1px solid red;
width: 600px;
height: 200px;
/* IE 5 and 6 bug fix */
//width: 620px;
//height: 220px;
}
Since IE can't understand the // comment, it will set it to 620x220 px instead.
M
Here is a very simple hack to fix the IE 5 and 6 box model bug that works for me.
div.left {
background-image: url("dimension.gif");
background-repeat: no-repeat;
padding: 10px;
padding-color: #00ff00;
border: 1px solid red;
width: 600px;
height: 200px;
/* IE 5 and 6 bug fix */
//width: 620px;
//height: 220px;
}
Since IE can't understand the // comment, it will set it to 620x220 px instead.
M