How to extend the sidebar to the whole length of the webpage?

4 replies
  • WEB DESIGN
  • |
Hi,

I downloaded a free website template & deisgn my website as self-storage-hk.com , I want to extend the left sidebar to the whole length of the webpage.

This website template is using style sheet.
How can I do it ?
Please advise
Thanks
Tony.

:confused:
#extend #length #sidebar #webpage
  • Profile picture of the author RichKent
    That's a standard problem / complaint in design as there isn't currently a great way to do this.

    The easiest way is to use a full-width background image behind the content <div> that's tiled vertically that has brown on the left (under where the sidebar would go) and white on the main content, so that even when the sidebar is short it still appears to be full length.

    Your other option is to add height to the sidebar class - so in your stylesheet look for: #leftcol and add a new line with either:
    min-height:600px;
    or
    height:600px;

    Replace the 600 with the height you'd like. Difference is that min-height can expand beyond 600px, whereas height locks the height at 600px.
    {{ DiscussionBoard.errors[5965794].message }}
  • Profile picture of the author WebsiteBegin
    I've always gone into my body tag and added
    style="height:100%;"

    Is that method outdated now-a-days? Meh.
    Signature
    WebsiteBegin | Learn to Build and Manage an Amazing Website

    Follow me on Twitter - Joeb3219
    {{ DiscussionBoard.errors[5984080].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by WebsiteBegin View Post

      I've always gone into my body tag and added
      style="height:100%;"

      Is that method outdated now-a-days? Meh.
      No, but those that understand CSS know it doesn't work (and it's irrelevant) when it comes about the length of the background colour of the SIDEBAR.
      Signature

      {{ DiscussionBoard.errors[5984187].message }}
      • Profile picture of the author WebsiteBegin
        Originally Posted by Istvan Horvath View Post

        No, but those that understand CSS know it doesn't work (and it's irrelevant) when it comes about the length of the background colour of the SIDEBAR.
        My bad! I mis-read the OP. I thought he meant the scroll-bar on the side.
        Signature
        WebsiteBegin | Learn to Build and Manage an Amazing Website

        Follow me on Twitter - Joeb3219
        {{ DiscussionBoard.errors[5984282].message }}

Trending Topics