Re: XHTML strict and align=center

by "Darrell King" <darrell(at)webctr.com>

 Date:  Sat, 3 Aug 2002 16:10:10 -0400
 To:  "HWG Basics List" <hwg-basics(at)hwg.org>,
"Techniques List HWG" <hwg-techniques(at)hwg.org>
 References:  umr
  todo: View Thread, Original

.center-content {
text-align: center;
}

<p class='center-content'>this text is centered</p>

Although it is more liekly your class would do more than just center the
text, but I wanted to keep it simple...:).

D


----- Original Message -----
From: Hall, Richard H.
To: HWG Basics List ; Techniques List HWG
Sent: Saturday, August 03, 2002 4:02 PM
Subject: XHTML strict and align=center


Does anyone know any way to center text that will validate using strict
xhtml and (if necessary) style sheets.

I have tried

<div align = "center"> and <p align = "center> and <h2 align = "center">

also I could not see that there is any css attirbute that is center (e.g.,
.center { align = "center"})

... as always any help would be much appreciated ... thanks! ... Richard

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA