Re: Image Button Height/Width?

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 UTC