-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform_layouts_video.html
111 lines (111 loc) · 2.48 KB
/
form_layouts_video.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Form Layouts</title>
<meta charset="utf-8"/>
<style>
body {
font: normal 14px Helvetica, Arial, sans-serif;
}
dl {
padding-bottom: 20px;
margin: 0;
}
dt {
padding-bottom: 10px;
vertical-align: middle;
box-sizing: border-box;
}
dd {
padding-bottom: 20px;
margin: 0;
}
input[type="text"] {
width: 100%;
height: 40px;
padding: 0 8px;
font: normal 14px Helvetica, Arial, sans-serif;
border: 1px solid #cecece;
border-radius: 4px;
box-sizing: border-box;
}
input[type="text"] + input[type="text"] {
margin-top: 10px;
}
select {
width: 100%;
height: 40px;
padding: 0 8px;
-webkit-appearance: none;
-moz-appearance: none;
border: 1px solid #cecece;
appearance: none;
background: white;
box-sizing: border-box;
}
dl.partial {
display: inline-block;
padding-right: 20px;
box-sizing: border-box;
}
dl.city {
width: 50%;
}
dl.state {
width: 25%;
}
dl.zipcode {
width: 25%;
padding-right: 0;
}
</style>
</head>
<body>
<form action="" method="post">
<dl>
<dt>
<label for="name">Your Name</label>
</dt>
<dd>
<input type="text" name="name" id="name"/>
</dd>
</dl><!--
--><dl>
<dt>
<label for="address1">Address</label>
</dt>
<dd>
<input type="text" name="address1" id="address1"/>
<input type="text" name="address2" id="address2"/>
</dd>
</dl><!--
--><dl class="city partial">
<dt>
<label for="city">City</label>
</dt>
<dd>
<input type="text" name="city" id="city"/>
</dd>
</dl><!--
--><dl class="state partial">
<dt>
<label for="state">State</label>
</dt>
<dd>
<select id="state" name="state">
<option>AK</option>
<option>AL</option>
</select>
</dd>
</dl><!--
--><dl class="zipcode partial">
<dt>
<label for="zipcode">Zipcode</label>
</dt>
<dd>
<input type="text" name="zipcode" id="zipcode"/>
</dd>
</dl>
</form>
</body>
</html>