# [web] Making a Table Column Span the Rest of the Page?

This topic is 5097 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have 2 rows in a table, with the first row having a fixed height. How do you make the second row span the rest of the page vertically?
 __________________________________________
|          |                               |
|          |                               |
|          |                               |
|__________|_______________________________|
|          |                               |
|          |                               |
|          |                               |
|          |                               |
|          |                               |
|          |                               |
|          |                               |
|          |                               |
span the rest of the page
|         |           |           |
V         V           V           V


##### Share on other sites
<td height="100%"> add height="100%" to your td.

100%

##### Share on other sites
you may also want to add the height attribute as 100% to your table, just for compatability with older browsers.

##### Share on other sites
Just so you know, I don't think there is any simple way to guarantee that you can take up 100% of the vertical height in any browser. Vertical stuff is not very well defined and some browsers have been known to require that you give the body, and even html elements 100% height too for this sort of thing to work.

##### Share on other sites
I agree with Kylotan. height:100% is represented differently in browsers. For example, one may have it as 100% of the document, another (IE6) may have it as 100% of the view window (especially for CSS). Make sure you have the right DOCTYPE for your HTML, that's one way you can at least try to get the browser to adhere to a standard.

1. 1
2. 2
3. 3
Rutin
18
4. 4
5. 5
JoeJ
12

• 14
• 22
• 9
• 31
• 18
• ### Forum Statistics

• Total Topics
632618
• Total Posts
3007478
• ### Who's Online (See full list)

There are no registered users currently online

×