W3C home > Mailing lists > Public > www-html@w3.org > January 1999

Re: <div align=justify> ?

From: Frank Boumphrey <bckman@ix.netcom.com>
Date: Mon, 4 Jan 1999 14:53:42 -0500
Message-ID: <000201be3863$ab4e3660$83addccf@ix.netcom.com>
To: "David Birdsall" <D.Birdsall@herts.ac.uk>, "html (w3)mailing list" <www-html@w3.org>
>Does the <div> tag allow you to format text, so that it is justified
>across the page, instead of the usual left, right and centre alignments?

yes if you use the style attribute.

Try
<DIV STYLE="text-align:justify"></DIV>

Only works on the 4 series browsers. However be very careful about using
this unless you know the absolute width of the page you are writing to.
regards,
Frank

Frank Boumphrey

XML and style sheet info at Http://www.hypermedic.com/style/index.htm
Author: - Professional Style Sheets for HTML and XML http://www.wrox.com
CoAuthor:  XML applications from Wrox Press, www.wrox.com
Author: Using XML on the Web (March)
----- Original Message -----
From: David Birdsall <D.Birdsall@herts.ac.uk>
To: <www-html@w3.org>
Sent: Wednesday, December 16, 1998 5:52 PM
Subject: <div align=justify> ?
Received on Monday, 4 January 1999 23:26:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:38 GMT