CSS Cookbook App E
CSS Cookbook App E
CSS Cookbook App E
With the impact that forms have on our day-to-day Internet commerce and lifestyle,
forms are always in the foreground of website design.
Web designers want to control the look and feel of form elements in their web page
design so that they are more appealing to their audience and also fit in with the rest of
the design.
The problem is that browsers manipulate the visual display of form elements from one
browser to the next. Even the same browser version can display a form element differ-
ently on separate operating systems.
This appendix covers how browsers dont render form controls consistently. Since there
are about 10 browsers and 20 CSS properties reviewed, as well as 8 HTML form ele-
ments, the entire appendix is too large to print. So, we took it to the Internet and made
it available online for free. If youre viewing this appendix as a standalone piece online,
you can access the full book here: http://oreilly.com/catalog/9780596155933/.
677
Submit button, as shown in Table E-8 and Figure E-121 to Figure E-140
Textarea, as shown in Table E-9 and Figure E-141 to Figure E-160
The values used in Tables E-2 to E-9 include NA, Y, N, and S.
NA stands for Not Available (meaning that the CSS property does not apply to the form
element), Y for Yes (meaning that the CSS propertys value is properly applied), N for
No (meaning that the CSS propertys value was not applied), and S for Somewhat
(meaning that some part of the CSS propertys value is being applied).
The Somewhat value marks unusual situations. There are points within
the HTML and CSS specifications that do not define a certain behavior,
and therefore determination of a CSS rules successful application be-
comes difficult.
For example, Firefox expands the width of the input field as well as the
space between letters when using the letter-spacing property.
In this instance, the discrepancy could be due to Firefox calculating the
default width of the input field on a certain number of characters,
whereas the other browsers could be basing the width on a predeter-
mined value or an unadjusted number of characters at the font size of
the input field.
Figure E-13. Testing setting the spacing between lines of text on checkboxes
line-height
Figure E-33. Testing setting the spacing between lines of text on file input
Figure E-53. Testing setting the spacing between lines of text on radio buttons
line-height
Figure E-73. Testing setting the spacing between lines of text on text fields
Figure E-81. Testing the background color of a select element with multiple options
Figure E-82. Testing background images in a select element with multiple options
Figure E-83. Testing the removal of borders on a select element with multiple options
Figure E-84. Testing of border colors on a select element with multiple options
Figure E-85. Testing the styles of borders on a select element with multiple options
Figure E-86. Testing the widths of borders on a select element with multiple options
Figure E-87. Testing the color on a select element with multiple options
Figure E-88. Testing setting a different font on a select element with multiple options
Figure E-89. Testing a different size of font on a select element with multiple options
Figure E-90. Testing a bold font on a select element with multiple options
Figure E-91. Testing setting a height for a select element with multiple options
Figure E-92. Testing the letter spacing of a select element with multiple options
Figure E-93. Testing setting the spacing between lines of text on a select element with multiple options
Figure E-96. Testing the alignment of text on a select element with multiple options
Figure E-97. Testing setting a different font on a select element with multiple options
Figure E-98. Testing indenting the text on a select element with multiple options
Figure E-99. Testing the width of a select element with multiple options
Figure E-100. Testing the spacing between words on a select element with multiple options
line-height
Figure E-113. Testing setting the spacing between lines of text on a select element
Submit Element
When activated, the Submit button simply submits the form.
Figure E-133. Testing setting the spacing between lines of text on the Submit button
Figure E-140. Testing the spacing between words on the Submit button
Textarea Element
A textarea element is an HTML form element that allows for multiline text input by
the user.
Figure E-153. Testing setting the spacing between lines of text on the textarea element
Figure E-160. Testing the spacing between words on the textarea element