Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I FOUND THE ANSWER! To making a TABLE as tall as the screen in XHTML

0 views
Skip to first unread message

Alex J

unread,
May 24, 2002, 9:55:29 PM5/24/02
to
*** post for FREE via your newsreader at post.newsfeed.com ***

In XHTML you can't use the Height Attribute in Tables (I believe that is
stupid and takes away from the intuitive use of tables) so you have to use
stlyes.

But when you set the Table height as 100% with styles. The browser tries to
set the Tables height to 100% of it's parent height. But since it has no
parent. The browser will set the Table height to 100% of the Tables Child's
height.

Well, the way to give the Table a parent with a height that is 100% of the
window, is to make the Body Element 100% of the window. And to do that,
you'll have to use styles. If you insert the Tags below in ther Header
Section of your page. Then a Table will then be able to be 100% of the
height of the window it is in.

<style>
html {height:100%;}
body {height:100%;}
</style>

ENJOY!!!!!!! THIS WAS DRIVING ME CRAZY BUT ABOVE... IS THE ANSWER!


-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----

0 new messages