dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Confused about div height

  1. #1
    Join Date
    Jun 2009
    Posts
    5

    Confused about div height

    Hello,

    I have a div that I want to extend only as far as everything else on the page. I do NOT want it to extend farther, increasing the height of the document. How is this possible using CSS and HTML?

    Thank you.

  2. #2
    Join Date
    Jun 2009
    Posts
    5
    Also:

    I want that div to scroll when its content is too big for the page.

  3. #3
    Join Date
    Jan 2009
    Posts
    42
    Set a fixed height in CSS.
    And set the overflow:scroll for the containing div in CSS

  4. #4
    Join Date
    Jun 2009
    Posts
    5
    You mean specify a height in pixels? I can't do that, as I want the div to be as long as the rest of the page, not a fixed, unchanging length...

  5. #5
    Join Date
    Jan 2009
    Posts
    42
    Actually, just try setting to overflow:true and see what happens.

    You might need to sue javascript to find the height of the window and then set the div height from there.

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