W3C home > Mailing lists > Public > www-validator@w3.org > June 2004

Re: [VE][108] New Error Message Suggestion&In-Reply-To=<104681344.20040603182716@saimaco.ru>&References=<104681344.20040603182716@saimaco.ru>

From: Marc 'TROJjER' Kirkwood <marcpetkirkwood@hotmail.com>
Date: Sun, 6 Jun 2004 23:40:37 +0100
To: <www-validator@w3.org>
Message-ID: <BAY15-DAV10SonMqcFZ0002ceb8@hotmail.com>
Hi,

Assuming you want to validate a page as HTML 4.01 Transitional -- or otherwise, one of the XHTML Standards -- try this, which is recommended for the latest standards:

The CSS (stylesheet - if you don't know what those are, get a tutorial 'cos you'll need it for the new standards) width attribute should do the trick - for instance:-

Either apply it to all instances of the <table> tag via table {width:?px;} (where ? is the pixel count--you could also use % of screen, or anything that you could formerly use within the original tag attribute, plus a bunch of newer CSS-only units);

Or use either a class attribute with several tags, to group various tables into a bunch and assign the CSS to that with .ClassNameHere {width:?px;};

Or simply give the individual table an id attribute and use that, i.e. #id_Here {width:?px;}

That should do the trick. Note that if you are completely new to CSS and you are just using this to do it "on the fly", the "." and "#", preceeding the class name and id, are indicators of the respective types of CSS identifiers, and must remain.

--- Marc Kirkwood
Received on Sunday, 6 June 2004 18:41:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT