www.webdeveloper.com
Results 1 to 2 of 2

Thread: Table height breaks out of containing div in IE

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    Table height breaks out of containing div in IE

    Hi all,

    I have a page with a div set for 100% height. Inside that div is a table. I want to have that table expand to fill 100% of the containing div's height. I therefore set the table's height to be 100% as well. (Same for widths, but that doesn't seem to be a problem)

    Looks great in FF. Not so much in IE ... :P

    In IE, the table wants to overflow the div and this causes (unneeded/unwanted) scrollbars to appear on the div.

    Unfortunately, I cannot link to the page in question as it is a client page.

    Hopefully, this issue is generic enough that there are solutions already known to others.

    Thanks,
    Dennis

  2. #2
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,126
    Here's an example of the scenario you described. Seems to stretch fine in IE8:
    http://jsfiddle.net/ZE9Gk/1/
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

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