I know it is probably dumb to create table
s with div
s when I can actually use tables easily.
But, this is necessary for now, later on there will possibly be some CSS changes added to a div
.
For now I want the layout to look like the following:
I don't know about your browser support. This will work in modern browsers:
Html:
<div class="DivTable">
<div class="Row">
<div class="Cell"></div>
<div class="Cell"></div>
<div class="Cell"></div>
</div>
<div class="Row">
<div class="Cell"></div>
<div class="Cell"></div>
<div class="Cell"></div>
</div>
</div>
CSS:
.Cell{
width:100px;
height:50px;
border:1px solid blue;
float:left;
margin-left:10px;
}
.Cell:first-child{
margin-left:0px;
}
.Row{
margin-top:10px;
overflow:hidden;
}
.Row:first-child{
margin-top:0px;
}
.DivTable{
float:left;
border:1px solid red;
}