logo       

RE: align="center": msg#00077

org.w3c.validator

Subject: RE: align="center"

Technically the text-align behaviour that this document relies on is incorrect (at least from what I've read). Text align is only supposed to affect text, not images or tables. I believe the preferred method (which doesn't work in Internet Explorer) is to set the left and right margins to auto.
-----Original Message-----
From: www-validator-request@xxxxxx [mailto:www-validator-request@xxxxxx] On Behalf Of Gannon J. Dick
Sent: September 19, 2002 10:28 AM
To: www-validator@xxxxxx
Subject: Re: align="center"

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>Centering</title>
</head>
<body>
 <div style="text-align:center">
  <table>
     <tr><td>some text</td></tr>
  </table>
 </div>
</body>
</html>
----- Original Message -----
From: bronco
Sent: Thursday, September 19, 2002 12:11 AM
Subject: Re: align="center"

so, what can one use to replace align="center" with <div>.  The notes that I see say to use styles instead, but so far have offered no examples.
 
it may be a simple technique, but I haven't found one yet.  let's say I want to replace this with <div>
 
<body>
<table align="center">
  <tr><td>some text</td></tr>
</table>
 
what would it look like?
 
thanks,
steve
 
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise