I’m trying to create a simple template to work off. The right column and the lower bottom content aren’t positioning where I want. Also the wrapper isn’t aligning centrally but that’s only a minor issue.
Below is the code:
[U]css[/U]
body{
margin:auto;
padding:0;
}
#wrapper{
width:960px;
float:left;
}
#main_col(
margin:0;
padding:0;
width:620px;
float:left;
)
#right_col{
float:right;
margin:0;
padding:0;
width:240px;
}
.main_section{
margin:0;
padding:0;
width:310px;
float:left;
}
#lower_content_1{
clear:left;
}
#lower_content_2{
clear:all;
}
.section{
margin:0;
padding:0;
width:155px;
float:left;
}
#footer{
margin:0;
padding:0;
width:960px;
float:left;
}
img{
border:0;
margin:0;
padding:0;
}
[U]html[/U]
<div id = "wrapper">
<div id = "nav">
<img src="http://placehold.it/960x50">
</div>
<div id = "main_col">
<div id = "main_pic">
<img src="http://placehold.it/620x150">
</div>
<div id="lower_content_1">
<div class = "main_section">
<img src="http://placehold.it/310x100">
</div>
<div class = "main_section">
<img src="http://placehold.it/310x100">
</div>
</div>
<div id = "lower_content_2">
<div class = "section">
<img src="http://placehold.it/155x70">
</div>
<div class = "section">
<img src="http://placehold.it/155x70">
</div>
<div class = "section">
<img src="http://placehold.it/155x70">
</div>
<div class = "section">
<img src="http://placehold.it/155x70">
</div>
</div>
</div>
<div id = "right_col">
<img src="http://placehold.it/240x150">
</div>
<div id = "footer">
<img src="http://placehold.it/960x50">
</div>
</div>