Re: JUSTIFY

E. Stephen Mack (estephen@emf.net)
Tue, 12 Aug 1997 13:48:18 -0700


Message-Id: <3.0.3.32.19970812134818.01055184@emf.net>
Date: Tue, 12 Aug 1997 13:48:18 -0700
To: www-html@w3.org
From: "E. Stephen Mack" <estephen@emf.net>
In-Reply-To: <199708122005.VAA06237@imbolc.ucc.ie>
Subject: Re: JUSTIFY

jptxs <jptxs@idt.net> wrote
>> but it seems that there is still no place in the new specs, HTML or CSS,
>> for a justifying element or tag.  [...]
>> have i missed it, or is it just not there? if it isn't, should it be?

Peter Flynn <pflynn@imbolc.ucc.ie> wrote:
> No, it's not there, because HTML 3.2 and 4 document and codify
> existing practice, not future use.

Actually, the draft for HTML 4.0 now allows JUSTIFY as a valid attribute
for ALIGN, although the ALIGN attribute is deprecated [1].

In addition, CSS-1 allows justify as a value for the text-align
property as Hakon said.


> What you're looking for is <p align=3D"justify">, right? And <div
> align=3D"justify">? Do browsers support these?

I tested this on IE 4.0 pp2 and Navigator 4.01 for Windows 95.  Both
support <P ALIGN=3D"JUSTIFY">.

But this is better:

<HTML>
<HEAD>
<TITLE>Fully Justified</TITLE>
<STYLE type=3D"text/css">
P.justify { text-align: justify }
</STYLE>
</HEAD>
<BODY>
<P CLASS=3D"justify">Well, here's a fine paragraph or so that might really=
 be
appearing in a different and interesting way.  As far as you can see.
Beautiful angel.  We have chosen shame and will get war thrown in as
well.  You got every rerun.  As far as you can see.  Professional Widow.
</BODY>
</HTML>


H=E5kon Wium Lie wrote:

> I believe the 4.0 browsers support this.

Yes, that's the case on Windows 95 at least.  (PP1 did not support it,
but PP2 does.)

[1] http://www.w3.org/TR/WD-html40-970708/present/graphics.html#h-8.2.1.2
--=20
E. Stephen Mack <estephen@emf.net>    http://www.emf.net/~estephen/