-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsb_forms.css
88 lines (69 loc) · 1.22 KB
/
sb_forms.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
New Perspectives on HTML and CSS, 7th Edition
Tutorial 7
Case Problem 2
Spice Bowl Forms Style Sheet
Filename: sb_forms.css
*/
/* Login Form Layout Styles */
form#login {
float: right;
}
form#login input {
margin: 10px;
}
/* Form Layout Styles */
form#payment {
background-color: rgba(206, 141, 56, 0.1);
}
fieldset {
border: none;
}
legend {
background-color: rgba(206, 141, 56, 0.7);
color: rgba(255, 255, 255, 0.7);
font-size: 0.9em;
border-radius: 10px;
margin-bottom: 10px;
padding: 8px;
width: 100%;
}
/* Input and Label Styles */
label {
display: block;
float: left;
clear: left;
font-size: 0.9em;
margin-bottom: 10px;
margin-right: 10px;
width: 180px;
text-align: right;
}
form#payment input,
form#payment select {
display: block;
float: left;
}
/* Radio Button Styles */
label.cardLabel {
display: inline-block;
float: none;
width: auto;
}
label.cardLabel img {
border: 1px solid rgb(181, 181, 181);
box-shadow: rgb(51, 51, 51) 0px 0px 10px;
}
input[type='radio'] {
width: auto;
float: none;
clear: none;
margin-right: 15px;
}
/* Submit Button Styles */
button {
background: transparent;
border: none;
display: block;
margin: 5px auto;
}