Maxal
06-17-2012, 07:58 PM
Hi everyone
I have a 3-column CSS layout with a header and a footer. Now I need a block which sits over the top of the first 2 columns — that are left and the middle columns — but does not cross over the right column, which is the 3rd column.
Similarly, I also need a block which stays under the first two columns but does not run over the last column. Below is my code of 3 columns including header and footer.
Since I am not well versed in CSS, I need your help to achieve the desired layout. Thanx in advance :)
#header {
background-color: #00bff3;
float: left;
height: 100px;
width: 980px;
margin-bottom: 20px;
padding-left: 20px;
}
#content {
float: left;
background: #fff;
width: 320px;
margin-left: 17px;
margin-bottom: 20px;
}
#leftcolumn {
width: 320px;
float: left;
margin-bottom: 20px;
}
#rightcolumn {
width: 320px;
float: left;
margin-bottom: 20px;
}
#footer {
margin-left: 15px;
height: 100px;
width: 980px;
background: #eeeeee;
clear: both;
}
I have a 3-column CSS layout with a header and a footer. Now I need a block which sits over the top of the first 2 columns — that are left and the middle columns — but does not cross over the right column, which is the 3rd column.
Similarly, I also need a block which stays under the first two columns but does not run over the last column. Below is my code of 3 columns including header and footer.
Since I am not well versed in CSS, I need your help to achieve the desired layout. Thanx in advance :)
#header {
background-color: #00bff3;
float: left;
height: 100px;
width: 980px;
margin-bottom: 20px;
padding-left: 20px;
}
#content {
float: left;
background: #fff;
width: 320px;
margin-left: 17px;
margin-bottom: 20px;
}
#leftcolumn {
width: 320px;
float: left;
margin-bottom: 20px;
}
#rightcolumn {
width: 320px;
float: left;
margin-bottom: 20px;
}
#footer {
margin-left: 15px;
height: 100px;
width: 980px;
background: #eeeeee;
clear: both;
}