- From: <ve3ll@rac.ca>
- Date: Mon, 13 Feb 2006 18:45:43 -0500
- To: www-amaya@w3.org
- Message-ID: <43F0D3D7.21303.330E47@ve3ll.rac.ca>
There are still a few styling issues with tables.... First is centering -- lost when width is used in addition to margin..... <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head><title>Table Centering:VE3LL@RAC.CA</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> </head><body> <h1>Table Centering:VE3LL@RAC.CA</h1> <p>This table has <em>margin:auto</em> rule only</p> <table style="margin:auto;background:#deadff"> <tr><th class="col">Year</th><th class="col">Sales</th></tr> <tr><td class="col">2000</td><td class="col">$18M</td></tr> <tr><td class="col">2001</td><td class="col">$25M</td></tr> <tr><td class="col">2002</td><td class="col">$36M</td></tr></table> <p>This table has <em>margin:auto</em> rule and a <em>width:200px</em> rule.</p> <table style="margin:auto;width:200px;background:#deadff"> <tr><th class="col">Year</th><th class="col">Sales</th></tr> <tr><td class="col">2000</td><td class="col">$18M</td></tr> <tr><td class="col">2001</td><td class="col">$25M</td></tr> <tr><td class="col">2002</td><td class="col">$36M</td></tr></table> <p>This table has <em>margin:auto</em> rule and a <em>width:30%</em> rule.</p> <table style="margin:auto;width:30%;background:#deadff"> <tr><th class="col">Year</th><th class="col">Sales</th></tr> <tr><td class="col">2000</td><td class="col">$18M</td></tr> <tr><td class="col">2001</td><td class="col">$25M</td></tr> <tr><td class="col">2002</td><td class="col">$36M</td></tr></table> </body></html> -- -- John Russell, VE3LL@RAC.CA http://home.cogeco.ca/~ve3ll http://home.cogeco.ca/~trains http://home.cogeco.ca/~cipher
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: cssCentering.htm Date: 13 Feb 2006, 18:42 Size: 1561 bytes. Type: HTML-text
Attachments
- Text/HTML attachment: cssCentering.htm
Received on Monday, 13 February 2006 23:46:02 UTC