XML technologies / CSS / CSS Cookbook / Forms / Image-based submit buttons
(Excerpt from “CSS Kochbuch” by Christopher Schmitt)
Problem
You want to use an image as a submit button, as shown in the next figure.
Solution
Use an input element whose type attribute has the value image:
<input type="image" name="submit" src="submit.gif" />Figure: The magnifying-glass icon serves as a submit button.
Discussion
Although adding an image-based submit button is an HTML technique, CSS properties such as border and margin can be used to style the image.
See also
The HTML 4.01 specification for the input element.
Copyright of the German edition © 2007 by O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “CSS Kochbuch” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstr. 81, 50670 Köln