XML technologies / CSS / CSS Cookbook / Forms
(Excerpt from “CSS Kochbuch” by Christopher Schmitt)
Introduction
Without HTML forms, it would be impossible to log into your email account over the web, order books with a click or trade shares online. Although forms are now an essential part of the web, their default appearance in browsers is still rather ugly.
Forms generally appear by default with beveled input fields and textarea fields, along with dull buttons. This look and feel may just about be acceptable for a small intranet or website, but it will not give your project a professional appearance.
Fortunately, just a few CSS rules can produce forms that stand out from the rest. This chapter provides the techniques you need to start creating high-quality forms straight away.
You will learn which settings are available for HTML input elements such as buttons, text areas and text fields. Another technique explains how to configure a button so that a form can be submitted only once, preventing users from accidentally triggering several server-side processes. The chapter ends with two design examples: a simple login form and a long, table-based registration form.
Note:
At Styling form elements you will find an excellent supplement to this chapter. It clearly lists and explains most visual CSS properties for form elements and their support in ten current browsers.
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