Centering and Justifying

by "David Burlingame" <drbexe(at)tampabay.rr.com>

 Date:  Sun, 2 Nov 2003 15:54:02 -0800
 To:  <hwg-basics(at)hwg.org>
  todo: View Thread, Original
Hi.

First of all, I'm a firm believer in validating.

That said, I'd like to find a way to have a paragraph that is centered on a
page, only takes up about 80% width wise, and the words in the paragraph
itself to be "justified".

I've tried all the following: (without the dots!)

<.div align="center"><.table width="80%"><.tr align="justify"><td>

This doesn't work; it centers the table and the words in the paragraph.

<.div align="justify"><.table width="80%"><.tr><td>

This justifies the paragraph, but it is not centered on the page.

<.div align="justify" width="80%"><.table><.tr><td>

This doesn't work; I don't think "width" works in the "div" tag.

I've tried a few other ways, but I can't make it work.

Can anyone tell me how to do this, and still make it w3c valid?

Thanks in advance!

Dave Burlingame
http://www.drbexe.com/

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA