Jump to content

Help with basic html layout please


andrew_biggart

Recommended Posts

Ok so basically I am having a little bit of trouble with my layout template.

 

I have a container div which contain's a left column div and a page content div.

 

#container {
max-width: 952px;
height:100%;
background-image:url('images/container-bg.png');
background-repeat:repeat-x;
margin-top:30px;
}

#left_col {
width:316px;
height:812px;
float:left;
}
#left_column_top {
width:316px;
height:12px;
background-image:url('images/left-col-top-bg.png');
position:relative;
}

#left_column_bottom {
width:300px;
min-height:720px;
height:100%;
background-color:#bfbfbf;

position:relative;
padding-left:8px;
padding-right:8px;
padding-top:40px;
padding-bottom:40px;

}
#page_content {
width:604px;
min-height:780px;
height:100%;
float:right;
background-color:white;
border:1px #606060 solid;
margin-bottom:9px;
padding:10px;
}

 

The problem: I would like to solve is that when ever my page content div expands in height you can notice that the left column doesnt, so i want the left column to appear to be the same height as the page conent.

 

My solution: I deceided to add a bg image to the container div which was repeated when the page content div expanded but this doesnt seem to work.

 

Can anyone tell me why? Thanks

Link to comment
https://forums.phpfreaks.com/topic/182713-help-with-basic-html-layout-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.