[HTML] Table sizes

Glaanieboy

OSNN Veteran Addict
Joined
Mar 6, 2002
Messages
2,626
#1
As you can see on http://glaanieboy.dyndns.org/design/, I have a giant table (I left the boarders intact, so it's easy to view), with 3 seperate columns. I have set the width to 100%, which works ok. But the height is giving me a problem. I want it to stretch out all the way to the bottom, but I just can't do it. If you view the source code, you see I have set in both <table> as in all the <td>'s a height of 100%, but it just doesn't work. Help me!
 

Geffy

OSNN Veteran Addict
Joined
Mar 18, 2002
Messages
7,805
#2
height isnt a valid table tag, try using CSS positioning to set it say x from the top and x from the bottom, or maybe margin-bottom
 

Ded Morozh

I don't DISlike you...
Joined
Feb 16, 2004
Messages
125
#3
The height tag will work in a table, but you should set it in pixels. As it is it's fine, you don't have enough content in the table to extend down the page.
 
P

PseudoKiller

Guest
#4
height is a valid table attribute... in % or pixels. What is messing it up is the info at the top

<!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

add the 2 -- in red above and it works...
 

Glaanieboy

OSNN Veteran Addict
Joined
Mar 6, 2002
Messages
2,626
#5
PseudoKiller said:
height is a valid table attribute... in % or pixels. What is messing it up is the info at the top

<!--DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

add the 2 -- in red above and it works...
According to the w3c.org website, these -- shouldn't be there:
http://www.w3.org/QA/2002/04/valid-dtd-list.html

@Geffy, I did consider that, but I figured it should work with plain HTML too. Nevertheless, I shall try it.

@Ded Morozh, that would mean if someone browsed my site with a 960 vertical pixel resolution (I am developing this site @ 768 vert pixels), the table wouldn't be extended to the bottom and someone with a 600 vp resolution would have a table stretched out beyond normal resolution. If you know what I mean ;)
 
P

PseudoKiller

Guest
#6
Glaanieboy said:
According to the w3c.org website, these -- shouldn't be there:
http://www.w3.org/QA/2002/04/valid-dtd-list.html

@Geffy, I did consider that, but I figured it should work with plain HTML too. Nevertheless, I shall try it.

@Ded Morozh, that would mean if someone browsed my site with a 960 vertical pixel resolution (I am developing this site @ 768 vert pixels), the table wouldn't be extended to the bottom and someone with a 600 vp resolution would have a table stretched out beyond normal resolution. If you know what I mean ;)
up to you but it worked when I put in the -- go figure. Maybe a bug :confused:
 

X-Istence

*
Political User
Joined
Dec 5, 2001
Messages
6,498
#9
CSS, not HTML.

CSS was created to making the stuff that gets displayed all pretty, where as HTML was made as a markup langauge, as a way to tell the browser about certain text, not as a way to add the looks and stuff that it has grown out to be.
 

Glaanieboy

OSNN Veteran Addict
Joined
Mar 6, 2002
Messages
2,626
#10
Alright. I gave up on the whole table align thing, I removed the borders, so at least you don't see it. I still find it strange when adding the -- it works, otherwise (as specified by W3C) it doesn't. Perhaps a bug, maybe intentional, who knows. I don't and I don't want to know. What's important to me, is that my site is being rendered properly in the popular browsers (Opera, IE, Mozilla/Gecko), if I break a rule, though luck.

Right now I am recoding my shoutbox, so it will be better intergrated in the site and have better security and I will build a blog-system. But that doesn't have to do with my original question, so I'll stop. Thank you all for your help, it was greatly appreciated.
 

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,979
Messages
673,325
Members
89,021
Latest member
qoitjhon