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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.