• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XHTML & Table heights

J

Jason2k1

Guest
#1
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
 
#2
# 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
 

SPeedY_B

I may actually be insane.
#4
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;"
 
J

Jason2k1

Guest
#5
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?
 

X-Istence

*
Political User
#8
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.
 
J

Jason2k1

Guest
#10

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,247
Members
89,019
Latest member
fontjohnson