Get a free trial // Grow your CSS skills // Land your dream job

help with page length

  • # July 19, 2008 at 8:28 pm

    I am building a page that i have in contained in a wrapper div. the div was set for a specific lenght. How do i make it so that the page will expand to fit the amount of content. so it’s not a set length

    # July 19, 2008 at 8:32 pm

    well i did it by just removing the length property on the div and the main content areas. Is this an acceptable way or is there a better way?

    # July 20, 2008 at 8:19 am

    That is good ofcourse, if you don’t set the height of an element, it has an auto hight. You could also consider a min-height so it’ll be at least as high as or higher than a specific height.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed