-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNewLab2.html
More file actions
173 lines (163 loc) · 3.45 KB
/
NewLab2.html
File metadata and controls
173 lines (163 loc) · 3.45 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<body>
<form id=order>
<fieldset>
<h3>Step 1: Your details</h3>
<ol>
<li>
<label for=name>Name</label>
<input id=name name=name type=text placeholder="First and last name">
</li>
<li>
<label for=email>Email</label>
<input id=email name=email type=email placeholder="example@domain.com">
</li>
<li>
<label for=phone>Phone</label>
<input id=phone name=phone type=tel placeholder="Eg. +447500000000">
</li>
</ol>
</fieldset>
<fieldset>
<h3>Step 2: Delivery address</h3>
<ol>
<li>
<label for=address>Address</label>
<textarea id=address name=address rows=5></textarea>
</li>
<li>
<label for=postcode>Post code</label>
<input id=postcode name=postcode type=text>
</li>
<li>
<label for=country>Country</label>
<input id=country name=country type=text>
</li>
</ol>
</fieldset>
<fieldset>
<h3>Step 3: Card details</h3>
<ol>
<li>
<fieldset>
<h4>Card type</h4>
<ol>
<li>
<input id=visa name=cardtype type=radio>
<label for=visa>VISA</label>
</li>
<li>
<input id=amex name=cardtype type=radio>
<label for=amex>AmEx</label>
</li>
<li>
<input id=mastercard name=cardtype type=radio>
<label for=mastercard>Mastercard</label>
</li>
</ol>
</fieldset>
</li>
<li>
<label for=cardnumber>Card number</label>
<input id=cardnumber name=cardnumber type=number required>
</li>
<li>
<label for=secure>Security code</label>
<input id=secure name=secure type=number required>
</li>
<li>
<label for=namecard>Name on card</label>
<input id=namecard name=namecard type=text placeholder="Exact name as on the card" required>
</li>
</ol>
</fieldset>
</body>
<fieldset>
<button type=submit>Buy it!</button>
</fieldset>
</form>
</html>
<style>
html, body, h3, h4, form, fieldset, ol, li {
margin: 0;
padding: 0;
}
body {
background: white;
color: black;
font-family: "Times New Roman";
padding: 20px;
}
form#order {
background: darkolivegreen;
border-radius: 5px;
padding: 20px;
width: 400px;
}
form#order fieldset {
border: none;
margin-bottom: 10px;
}
form#order fieldset:last-of-type {
margin-bottom: 0;
}
form#order ol li {
background: #b9cf6a;
background: rgba(255,255,255,.3);
border-color: #e3ebc3;
border-color: rgba(255,255,255,.6);
border-style: solid;
border-width: 2px;
border-radius: 5px;
border-radius: 5px;
border-radius: 5px;
line-height: 30px;
list-style: none;
padding: 5px 10px;
margin-bottom: 2px;
}
form#order ol ol li {
background: none;
border: none;
float: left;
}
form#order label {
float: left;
font-size: 13px;
width: 110px;
}
form#order fieldset fieldset label {
background:none no-repeat left 50%;
line-height: 20px;
padding: 0 0 0 30px;
width: auto;
}
form#order input:not([type=radio]),
form#order textarea {
background: #ffffff;
border: none;
border-radius: 3px;
border-radius: 3px;
border-radius: 3px;
border-radius: 3px;
font: italic 13px "Times New Roman";
outline: none;
padding: 5px;
width: 200px;
}
form#order button {
background: #384313;
border: none;
border-radius: 20px;
border-radius: 20px;
border-radius: 20px;
border-radius: 20px;
color: white;
display: block;
font: 18px "Times New Roman";
margin: auto;
padding: 7px 25px;
text-transform: uppercase;
}
</style>