T
Tomas
Hi,
I'm working on a little project for school for which I have to - among
other
things - design a page containing only one table. I'd like this table
to be horizontally and vertically centered, and both height and width
of this table to be say 80% of the available space in the browser
window. I tried this with nesting tables, sort of like this:
<table height="100%" width="100%"><tr><td align="center"
valign="middle"><table height="80%" width="80%"><tr><td>actual
contents</td></tr></table></table>
But I found out that TABLE doesn't have a height attribute, and that
tables
aren't really ment to be used for layout. So... how do I
center the table that contains the data horizontally AND vertically
and give it a width and height of 80% of available space?
Greetings,
Tomas
I'm working on a little project for school for which I have to - among
other
things - design a page containing only one table. I'd like this table
to be horizontally and vertically centered, and both height and width
of this table to be say 80% of the available space in the browser
window. I tried this with nesting tables, sort of like this:
<table height="100%" width="100%"><tr><td align="center"
valign="middle"><table height="80%" width="80%"><tr><td>actual
contents</td></tr></table></table>
But I found out that TABLE doesn't have a height attribute, and that
tables
aren't really ment to be used for layout. So... how do I
center the table that contains the data horizontally AND vertically
and give it a width and height of 80% of available space?
Greetings,
Tomas