- From: David Perrell <davidp@earthlink.net>
- Date: Tue, 4 Aug 1998 19:23:37 -0700
- To: "W3C HTML List" <www-html@w3.org>
Charles A. Finnell wrote: >Problem: > >W3C HTML 4.0 forbids including the BORDER= WIDTH= HEIGHT= keywords >as part of an <INPUT TYPE=image tag. Forbidden? Or just not to be supported in future browsers? >Solution: > >Adjust the HTML standard to allow future browser products to >treat the <INPUT TYPE=image tag very, very similar to the >way they treat the <IMG tag, allowing all <IMG tag keywords >on the <INPUT TYPE=image tag with equivalent functionality. Hopefully, by the time HTML 4.0 becomes a full standard this will be addressed by CSS2 implementations. In a CSS2 stylesheet you can specify how INPUT images are displayed through the use of attribute selectors. For example: INPUT[SRC="/images/okbutton.gif"] { border: none; width: 20px; height: 20px } This declaration turns off the border when okbutton.gif is the INPUT image and also specifies the size of the image. (Not that I don't agree that an INPUT IMG should have the same HTML attributes as any other IMG...) David Perrell
Received on Tuesday, 4 August 1998 22:23:32 UTC