XHTML & Table heights

J

Jason2k1

Guest
I am currently creating a new site, and am trying to make it xhtml 1.0 compliant. Here is what i have done so far:

http://www.gamezonenetwork.myhost24.com/dev/index.php

I have got rid of many of the errors within my page. There are just twelve left.

When i validate it (http://validator.w3.org/check?uri=http://www.gamezonenetwork.myhost24.com/dev/index.php) it gives the error the height attribute in a table does not exist. I am trying to get the table to be 100% the height of the browser(You'll understand if you look at the site), What else am i supposed to use to do this? Also there are other errors any help would be grateful.


Jason
 
# Line 26, column 26: there is no attribute "height" (explain...).

<table width="770" height="100%" bgcolor="#bbbaaa" border="0" align="center" cel

that section remove the
height="100%"
part in that tag and add

PHP:
style="height: 100%"
in its place

you can do that for just about all of the height issues that the validator complains about
 
the compliant about the background tag, you should move that to be within a STYLE tag as well
 
That'd do it ;)

Here's an example of background style
Code:
style="background-image: url("img/bg/blah.png");  background-position: 0% 0%; background-repeat: no-repeat; background-attachment: fixed;"
 
Thanx for the help, moving the height into the style attribute gets rid of the validation errors, but if you look on the actual page, the table is still not 100% of the browser height like it should be. Any Ideas?
 
So what am i meant to use instead to make the table 100% of the browser height?
 
dont make it 100%, i get ticked off when sites do that. Just make the text / whatever else on your site make it longer than 100% at lets say 800 x 600 resolution. There is no reason to make it 100% if there is no content there.
 
HI,
why/what for do you need a 100% height table ?
Meher.
France.
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back