-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-labels-on-top.html
115 lines (88 loc) · 3.24 KB
/
form-labels-on-top.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
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Form With Labels On Top</title>
<link rel="stylesheet" href="assets/demo.css">
<link rel="stylesheet" href="assets/form-labels-on-top.css">
</head>
<header>
<h1>Freebie: 7 Clean and Responsive Forms</h1>
<a href="http://tutorialzine.com/2015/07/freebie-7-clean-and-responsive-forms/">Download</a>
</header>
<ul>
<li><a href="index.html">Basic</a></li>
<li><a href="form-register.html">Register</a></li>
<li><a href="form-login.html">Login</a></li>
<li><a href="form-mini.html">Mini</a></li>
<li><a href="form-labels-on-top.html" class="active">Labels on Top</a></li>
<li><a href="form-validation.html">Validation</a></li>
<li><a href="form-search.html">Search</a></li>
</ul>
<div class="main-content">
<!-- You only need this form and the form-labels-on-top.css -->
<form class="form-labels-on-top" method="post" action="#">
<div class="form-title-row">
<h1>Form Example</h1>
</div>
<div class="form-row">
<label>
<span>Full name</span>
<input type="text" name="name">
</label>
</div>
<div class="form-row">
<label>
<span>Email</span>
<input type="email" name="email">
</label>
</div>
<div class="form-row">
<label>
<span>Dropdown</span>
<select name="dropdown">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
<option>Option Four</option>
</select>
</label>
</div>
<div class="form-row">
<label>
<span>Checkbox</span>
<input type="checkbox" name="checkbox" checked>
</label>
</div>
<div class="form-row">
<label><span>Radio</span></label>
<div class="form-radio-buttons">
<div>
<label>
<input type="radio" name="radio">
<span>Radio option 1</span>
</label>
</div>
<div>
<label>
<input type="radio" name="radio">
<span>Radio option 2</span>
</label>
</div>
<div>
<label>
<input type="radio" name="radio">
<span>Radio option 3</span>
</label>
</div>
</div>
</div>
<div class="form-row">
<button type="submit">Submit Form</button>
</div>
</form>
</div>
</body>
</html>