Jump to content
  • Advertisement
Sign in to follow this  
v0dKA

[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.

If you intended to correct an error in the post then please contact us.

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 this post


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

Share this post


Link to post
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 this post


Link to post
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!