www.webdeveloper.com
Results 1 to 3 of 3

Thread: sidebar height

  1. #1
    Join Date
    Jan 2007
    Posts
    108

    sidebar height

    Hello,

    I'm new to laying out with css and one thing seems to come up here and there. I make a container div. I then have a sidebar div floated left and a content div. The sidebar would have a colored background.. my question is, how do I make the sidebar div grow in height as content is added to the content div with out giving the sidebar div a height? or am I doing this wrong all together?

  2. #2
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    In terms of the site content, having a container higher than the content within doesn't make much sense. Whilst visually it may look good, in practical terms not easy to do. The easiest way is to provide a repeating background on the containing element to make it look like all columns go full height - the faux columns method.

  3. #3
    Join Date
    Jan 2007
    Posts
    108
    ohh.. well isn't that simple thank you for your help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles