Reputation: 3
I got a task to make a table layout like we in 1997, without any css at all, and i got stuck with setting main table a 100% height
. So, without any style attributes only with tools available in 1997, how i can make it?
I found out a working solution for modern browsers - deleting DOCTYPE
, but it is obviously a hack.
Setting body and html height="100%"
also doesn't work
Upvotes: 0
Views: 812
Reputation: 3336
The width
and height
properties of a <table>
are not supported in HTML5. So you're going to need to remove the <!DOCTYPE html>
declaration from your mark up in any case. Or use CSS.
Given you said that you can't use CSS, then ensure that you have removed that <!DOCTYPE html>
declaration from your mark up and then you can set the height of your <table>
as follows:
<table height="100%">
This should do the job for you!
Upvotes: 1