W3C home > Mailing lists > Public > www-validator@w3.org > August 2005

Re: Height in tables

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 02 Aug 2005 14:13:52 +1000
Message-ID: <42EEF300.6020209@lachy.id.au>
To: Juanchino2005 <juanchino2005@yahoo.com.ar>
CC: www-validator@w3.org

Juanchino2005 wrote:
> Hi www-validator,
>    I want to build my site validated as well as accesible and that it
>    lets the user to set up the working area and that in the site could be
>    seen in fullscreen the same in different browsers and resolutions,

What about browsers without screens?  e.g. aural or tactile devices.  Or 
even devices with really small screens, like PDAs.

>    the simplest thing i tried to do is to make a table whose
>    dimensions are setted up by the working area of the browser (width
>    and height in percents) but when i want to validate height in
>    tables isn't recommended so i want to know how can I do this
>    easily.

It sounds like you may be using tables for layout, rather than marking 
up tabluar data.  If that is the case, don't do that.  Use proper 
semantic markup and then apply CSS for all layout and presentation.

In the mean time, you can achieve the same result as the height and 
width attributes by using CSS (preferably in an external stylesheet) to 
style the table.

table { height: 100%; width: 100%; }

Lachlan Hunt
Received on Tuesday, 2 August 2005 04:15:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:52 UTC