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

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.