Jump to content

Problem setting height for sidebar


shaunie

Recommended Posts

Hi shaunie,

 

The easiest way with the setup you have is to use an image on the container div (#content) and remove the background color and border of #sidebar.

so your css could look like this.

 

#content {
    background: url("http://i51.tinypic.com/11qpojq.png") repeat-y; /* this is an image of 170px with your same colors */
    clear: both;
    float: left;
    height: 100%;
}
#content #sidebar { /* removed the color and background */
    float: left;
    min-height: 400px;
    padding: 10px;
    width: 160px;
}

 

I quickly made an image that does the same as that background color and border, but allows you to increase the height of your page to whatever value you like. you can find/use/download it here: http://i51.tinypic.com/11qpojq.png

 

good luck!

 

cssfreakie

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.