centering an <img> in html3?

Chris G Demetriou ([email protected])
Sun, 4 Jun 1995 23:04:49 +0500


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.
There also seems to be no easy way to add a link from a <fig>,
covering the whole image, and without any accompanying text.
(I tried using <a shape="default" ...> with and without text, but it
didn't work right for me in arena 0.96s.)

I've got a few pictures that are purely decorative but that (if
displayed) need hypertext links to copyright and disclaimer
information. If no pictures is displayed, i don't want the links, so
i don't want any alternate text or any other text accompanying the
images. I figure the easiest way to do this is to wrap a <a> around a
centered <img>, but html3 doesn't seem to support that. (I could use a
netscape extension to HTML, but i'd rather not.)

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
disadvantage that it's not "backward compatible" with old browsers,
but i suppose that that'll eventually cease being a problem. 8-)

thanks,

chris