Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 1 decade ago

[html] table that fits whole screen?

I want a table that fits the whole screen with no vertical or horizontal scrollbars.

I have 3 rows, 1st and 3rd row to have fixed height while the 2nd row to be scrollable.

I have set my table width to 100% so it has no horizontal scrollbar.. but I don't know how to solve the vertical scrollbar problem.

What I have right now is something like this:

-----

#page {

width: 100%;

height: 100%;

}

-----

<table id="page">

<tr><td height=20% background="">

<div style="overflow:hidden;">...</div>

</td></tr>

<tr><td height=60% background="">

<div style="overflow:auto;">...</div>

</td></tr>

<tr><td height=20% background="">

<div style="overflow:hidden;">...</div>

</td></tr>

</table>

-----

Please help me! This is urgent!

Thanks in advance!

Update:

sorry, but that does not help me.

do you mean to say that there is no way i can make the overall height of my table 100% such that the browser does not have a vertical scrollbar?

6 Answers

Relevance
Still have questions? Get your answers by asking now.