-
Notifications
You must be signed in to change notification settings - Fork 0
/
12_form_styling.html
127 lines (116 loc) · 2.94 KB
/
12_form_styling.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
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form Styling</title>
<style>
body{
box-sizing: border-box;
font-family: Verdana, Geneva, Tahoma, sans-serif;
background: #344a72;
}
main {
margin: auto;
width: 30%;
}
section {
margin: auto;
margin-top: 10%;
border-radius: 20px;
}
section button {
display: block;
width: 91%;
padding: 10px;
margin-top: 2em;
margin-left: 1em;
margin-bottom: 1em;
background: #49c1a2;
color: white;
height: 3em;
border-radius: 10px;
cursor: pointer;
}
.form-wrap {
background: white;
}
.form-wrap h1 {
padding-top: 0.5em;
text-align: center;
margin-bottom: 0.2em;
}
.form-wrap .bottom-text {
text-align: center;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.form-item {
width: 95%;
margin: auto;
}
.form-item label {
color: lightslategray;
display: block;
margin-bottom: 0.7em;
margin-top: 0.7em;
}
.form-item input {
height: 3em;
width: 95%;
}
footer {
text-align: center;
color: white;
font-size: 0.8em;
margin-top: 10px;
}
footer p a {
color: #49c1a2;
}
</style>
</head>
<body>
<main>
<section class="form-wrap">
<h1>
Sign Up
</h1>
<p>It's free and only takes a minute</p>
<form action="">
<div class="form-item">
<label for="fname">First Name</label>
<input type="text" id="fname" name="fname"/>
</div>
<div class="form-item">
<label for="lname">Last Name</label>
<input type="text" id="lname" name="lname"/>
</div>
<div class="form-item">
<label for="email">Email</label>
<input type="email" id="email" name="email"/>
</div>
<div class="form-item">
<label for="fpassword">Password</label>
<input type="fpassword" id="fpassword" name="fpassword"/>
</div>
<div class="form-item">
<label for="spassword">Confirm Password</label>
<input type="spassword" id="spassword" name="spassword"/>
</div>
<button type="submit">Sign Up</button>
<p class="bottom-text">
By clicking the Sign Up button, you agree to our
<a href="">Terms & Conditions</a>
<a href="">Privacy Policy</a>
</p>
</form>
</section>
<footer>
<p>
Already have an account? <a href="">Login Here</a>
</p>
</footer>
</main>
</body>
</html>