If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Can A Table Be Used This Way?

I need something that seems quite simple but has given me a rediculously hard time.

Can a table with three rows be used to fill the screen vertically with a fixed top and bottom row height but a flexible center row that stretches as needed depending on the browser window?

Here is the code that isn't working for me at all. The table height fills the window perfectly but when the browser window is resized the table rows stretch weirdly even though the top and bottom ones have set heights. I only want the center row to resize. The text is there just as content because without it I can't even see the table.

Ok, I figured out the problem but I'm still baffled.
When I remove the line

Code:

<meta http-equiv="X-UA-Compatible" content="IE=7">

it works exactly as I need it to. The problem now is I can't set a DOCTYPE without it going completely crazy again.

I'm tempted not to use a DOCTYPE at all since that seems to be the only way I can get it to work correctly but I've read that is a bad idea and some newer browsers can't display pages correctly without it.

Seems all I needed was the <!doctype html> declaration to get into Standards mode and then surround the entire code above in another table that takes up 100% of the height and width of the browser window.

Oh nevermind. I just checked my email and saw your original response which made no sense at all (and was more than a little offensive). It's gone now so I assume the mods are busy cleaning up behind you. Have a nice day