I know there are a lot of articles concerning the topic at hand. My mission is to achieve a fixed-fluid 2 column layout with sticky header and footer. After reading several articles, people claim that divs are better for building page layouts. I agree with that in certain cases. Can anyone tell me if what I am trying to accomplish, would be better with divs than a table. Can anyone give me a more simple solution with DIVs than the attached code using a TABLE.
CSS
html,body{
height:100%;
width:100%;
margin : 0;
}
table{
height:100%;
width:100%;
border-collapse: collapse;
border-spacing: 0
}
#top{
height:100px;
background-color:black;
}
#bottom{
height:100px;
background-color:blue;
}
#left{
width:250px;
background-color:blue;
}
HTML
<html>
<head>
</head>
<body>
<table >
<tr id="top">
<td colspan="2"></td>
</tr>
<tr id="mid">
<td id="left">
</td>
<td id="right">
</td>
</tr>
<tr id="bottom">
<td colspan="2">
</td>
</tr>
</table>
</body>
</html>