Re: centering an <img> in html3?

Chris G Demetriou ([email protected])
Mon, 5 Jun 1995 00:19:49 +0500


> On Sun, 4 Jun 1995, Chris G Demetriou wrote:
>
> > Looking through the html-ized HTML3 spec at
> > http://www.hpl.hp.co.uk/people/dsr/html/CoverPage.html
> > I noted that there appears to no "reasonable" way to center <img>s.
>
> Try <P ALIGN=center><IMG ...></P>. As far as I'm aware, that should do
> nicely.

Thanks! That worked wonderfully. I'd not even thought of using <p>. 8-(

> > Does anybody know how to do what I'm trying to do, with <fig>? If it's
> > not possible, is there hope of getting the "center" alignment spec
> > added to <img> tags in the html3 standard? (<fig> has the added
>
> There already is a 'center' alignment option in IMG - it's a vertical
> alignment, though.

Hmm. It's not listed in the HTML3 spec (at least, not in the one that
I mentioned above). The only alignment options listed for <img>s are
"top", "middle", and "bottom" (which are vertical alignment), and
"left" and "right" (for horizontal alignment.) Though the other
horizontal alignment options were there, "center" was missing.

later,

chris