PDA

View Full Version : Table Lenghts


Soad
08-21-2006, 04:58 AM
Bit confused on table lengths, when watching the control table tutorial the table lengths are 100% and 1022 but when I try it mine are 100% but 894 any ideas why

Thanks

chriskq
08-21-2006, 05:26 AM
due to your monitor resolution.
think about it...... someone with a higher res monitor (greater space) will therefor require a bigger table height width.

ps - no such thing as table lengths ..... width or heights only yar!

Soad
08-21-2006, 07:23 AM
Thanks, now I understand

dthomsen8
08-21-2006, 07:19 PM
Tables no longer should have specified heights. Heights don't validate.

Creative Insanity
08-21-2006, 07:41 PM
Umm dthomsen8, disagree.
I done this site (http://www.lisboa-x.com/) for a guy and the control table height is set to 100% and the alignment is set to center and middle and hence how I got the main table to display in the center of the screen.

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>

<td align="center" valign="middle">

d a v e
08-21-2006, 07:55 PM
you can't disagree with the fact that table height isn't valid as it never has been.

of course if it 'works' then that's 'ok'.

the problem with 100% height can be that some browsers interpret it as 100% ov the viewport and others may see it as 100% of the page

Creative Insanity
08-22-2006, 09:28 AM
you can't disagree with the fact that table height isn't valid as it never has been.
Yes I bloody can, and did. :P

domedia
08-22-2006, 02:18 PM
The attribute 'height' for table tags does not exist, it's propietary HTML.
http://www.w3.org/TR/html401/struct/tables.html#h-11.2.1

I just posted a link to an explanation of the problems arising when wanting to achieve "100% height" in another thread yesterday.

The unfortunate thing is that it's not simple to do the valid way with CSS, and using table height in HTML works well in some browsers, albeit it's 'made up' HTML. I guess using JS to get some height and width values would be the way to go, but JS is not the stronghold of most DW users, me included ;)