The Book place
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
PARTS:
Part 44
Part 45
Part 46
Part 47
Part 48
Part 49
Part 50
Part 51
Part 52
Part 53
Part 54
Part 55
Part 56
Part 57
Part 58
Part 59
Part 60
Part 61
Part 62
Part 63
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
An Account of the Reconquest of the Sudan (page 347)
Adonais (page 171)
An Account of the Proceedings on the Trial of Susan B. Anthony, on the Charge of Illegal Voting (page 60)