W3C home > Mailing lists > Public > www-html@w3.org > December 1998

Re: Image Button Height/Width?

From: Jukka Korpela <jkorpela@cc.hut.fi>
Date: Wed, 2 Dec 1998 15:47:23 +0200 (EET)
To: www-html@w3.org
Message-ID: <Pine.OSF.3.96.981202153918.21900B-100000@beta.hut.fi>
On Tue, 1 Dec 1998, Tom Neff wrote:

> Given that HEIGHT and WIDTH are important for graphical browser
> pre-rendering without disruptive redraws, why doesn't the HTML 4.0 DTD
> permit INPUT SRC=button.gif HEIGHT=54 WIDTH=27, even at this late date?

It seems unnecessary in general to introduce new presentational
attributes. Image buttons in general are very risky, see
http://www.hut.fi/u/jkorpela/forms/imagebutton.html

> We make all this fuss over using dimensions (along with ALT) in regular
> images, and we don't even allow it in buttons.

We do? There are good reasons _against_ using dimensions for regular
images especially if they are small. See
http://www.hut.fi/u/jkorpela/html/alt.html

So in addition to the fundamental (or "theoretical", if you like)
reasons against presentational attributes (especially those specifying
dimension in pixels), we have the very practical reason that
popular browsers have serious bugs and deficiencies in the implementation
of both IMG and INPUT TYPE="image". By the time the bugs have been
fixed, I'd expect some decent CSS1 support exist, too.  

Yucca, http://www.hut.fi/u/jkorpela/ or http://yucca.hut.fi/yucca.html
Received on Wednesday, 2 December 1998 08:47:31 GMT

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