Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8685879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:41:24+00:00 2026-06-12T22:41:24+00:00

I’m writing some code to generate a full screen page with a header. I’m

  • 0

I’m writing some code to generate a “full screen” page with a header. I’m using a table to do layout, with CSS specifying the dimensions and formatting.

The table has a height and width of 100% to cause it to fill the window/viewport, which at first works as intended. The table has two rows with one cell each. The first row’s cell has a height of 20px, while the other row’s cell has a height of 100% to allow it to fill the remaining space of the window. Inside the bottom cell is an iFrame, set to 100%x100% to fill the cell. The iFrame works as intended, however the table is not following its settings.

When the page is rendered in IE, which is specifically my target browser, the table is being stretched outside the range of the viewport. Specifically, the table is adding 20px to its dimensions. Even when I set the table to a fixed height, it’s still adding 20px to the dimensions I’m setting. I’d expect the code to force the table to 100% height, have a top cell of 20px, and the bottom cell specifically take up the remaining available space of the table’s height, without stretching the table. This works perfectly in Chrome, but IE keeps making the table’s height 100%+20px, even with a CSS rule setting it to strictly 100% height.

Below is a simplified version of my code:

    <table style=" height:100%; width: 100%;"><tr><td style="height: 20px;">
    {content header here}
    </td></tr><tr><td style="height: 100%;">
    {iframe with dimensions 100% x 100% here}
    </td></tr></table>

The result in Chrome displays perfectly. In IE, the containing table ends up 20px too tall and runs outside the viewport, causing the bottom 20px of the iframe to be outside the viewport.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T22:41:26+00:00Added an answer on June 12, 2026 at 10:41 pm

    That’s normal. One of the table rows is with height “20px” and the other is with height “100%”.

    Instead of “height:100%” use “height:auto”.

    This will force the browser to calculate what is the left page height space from the parent element if the first row is with height 20px:

    Also, “height:auto” could save you potential problems if your table has border and your elements has some padding or margins set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.