jyoun79
06-01-2007, 07:16 PM
Hi, I'm trying to make a box with 2 columns, and 2 rows in the left column. When I open it with IE, the right column "jumps" down BELOW the left column, rather than on the same row.
Here's my code:
<HTML>
<HEAD>
<style type="text/css">
.mainBox {
width:400px;
height: 150px;
margin-right:auto;
margin-left:auto;
margin-top:10px;
padding:0px;
text-align:left;
overflow : auto;
}
.rowBox {
width: 400px;
height: 150px;
padding:0px;
}
.leftRow {
width:300px;
height: 150px;
padding:0px;
float:left;
background:white;
}
.leftTop {
width:300px;
height: 100px;
padding:0px;
float:left;
background:gray;
}
.leftBottom {
width:300px;
height: 50px;
padding:0px;
float:left;
background:yellow;
}
.rightRow {
width:100px;
height: 150px;
padding:0px;
float:left;
background:green;
}
</style>
</HEAD>
<BODY>
<div class="mainBox">
<div class="rowBox">
<div class="leftRow">
<div class="leftTop">top box</div>
<div class="leftBottom">bottom box</div>
</div>
<div class="rightRow">
<img src="" width="100" height="50" align="right"/>
</div>
</div>
</div>
</BODY>
</HTML>
Any hints?
Here's my code:
<HTML>
<HEAD>
<style type="text/css">
.mainBox {
width:400px;
height: 150px;
margin-right:auto;
margin-left:auto;
margin-top:10px;
padding:0px;
text-align:left;
overflow : auto;
}
.rowBox {
width: 400px;
height: 150px;
padding:0px;
}
.leftRow {
width:300px;
height: 150px;
padding:0px;
float:left;
background:white;
}
.leftTop {
width:300px;
height: 100px;
padding:0px;
float:left;
background:gray;
}
.leftBottom {
width:300px;
height: 50px;
padding:0px;
float:left;
background:yellow;
}
.rightRow {
width:100px;
height: 150px;
padding:0px;
float:left;
background:green;
}
</style>
</HEAD>
<BODY>
<div class="mainBox">
<div class="rowBox">
<div class="leftRow">
<div class="leftTop">top box</div>
<div class="leftBottom">bottom box</div>
</div>
<div class="rightRow">
<img src="" width="100" height="50" align="right"/>
</div>
</div>
</div>
</BODY>
</HTML>
Any hints?