2009/11/3 Jack Bates <ms...@freezone.co.uk>:
> I have a web application that I hope to style entirely with CSS, if
> possible
>
> The application includes a submit button, <input type="submit"
> value="Search" />
>
> I want to replace this button with an image, so I tried the following
> CSS,

No need for CSS - HTML 4.01 (and therefore XHTML) already supports
graphical submit buttons.

>From HTML 4.01 section 17.4.1
<http://www.w3.org/TR/html401/interact/forms.html#h-17.4.1>:

"The control type defined by the INPUT element depends on the value of
the type attribute:
...
"image
"Creates a graphical submit button. The value of the src attribute
specifies the URI of the image that will decorate the button. For
accessibility reasons, authors should provide alternate text for the
image via the alt attribute."

Regards,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to