SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 947 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

Best of all, if CSS does
not support certain attributes, these attributes are just ignored and the form renders plainly.
Frequently, a Web page only contains a single form. In these situations, styling the
tag itself will
have the desired results. For example, this CSS rule gives the entire form a bright orange background and a
blue border:
form {
background: #FF9900;
border: thin solid #0000FF;
padding: 10px;
}
Padding is added to move the form elements in from the edges, as shown in Figure 14-14.
FIGURE 14-14
Apply CSS coloring to the form to make it stand out on the page.
CROSS-REF CROSS-REF
513
Interactive Forms 14
Should your page contain more than one form and you want to style each one differently, create a CSS ID
selector for each form. In this situation, choose the Advanced selector in the New CSS Rule dialog box and
enter a unique ID??”such as form#topform or form#bottomform??”in the Selector field. Also set the ID of
the form tag when using this method.
Altering input fields
One way in which the and
tags differ in regard to CSS is in the matter of inheritance.
Elements within a form do not inherit the CSS properties of the form, but elements within a
tag do
inherit the div??™s CSS attributes. You must, therefore, take another route for styling all the text fields in a
given form.


Pages:
935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959