-
Notifications
You must be signed in to change notification settings - Fork 0
/
07-contact-form.html
82 lines (73 loc) · 1.47 KB
/
07-contact-form.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Contact Form</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/base.css" />
<style type="text/css">
form {
max-width: 36rem;
margin: 2rem auto;
padding: 2rem;
background-color: #24243e;
display: grid;
gap: 1.5rem;
}
button {
display: inline-block;
padding: 0.6rem 2rem;
background-color: #ff5574;
border: 1px solid #ff5574;
border-radius: 5px;
color: #ffffff;
font-weight: 600;
font-size: 0.8rem;
cursor: pointer;
}
@media screen and (min-width: 540px) {
form {
grid-template-columns: 1fr 1fr;
}
#message-block {
/* grid-column-start: 2; */
grid-column: 2;
/*
grid-row-start: 1
grid-row-end: 3
*/
grid-row: 1 / 3;
/*
grid-area: 1 / 2 / 3 / -1;
*/
}
button {
/*
grid-column-start: 1;
grid-column-end: 3 (== -1);
==
grid-column: 1 / 3;
==
*/
grid-column: span 2;
}
}
</style>
</head>
<body>
<form>
<div>
<label>Full Name</label>
<input type="text" name="name" placeholder="Full Name" />
</div>
<div>
<label>Email Address</label>
<input type="email" name="email" placeholder="Email Address" />
</div>
<div id="message-block">
<label>Message</label>
<textarea name="message" placeholder="Your Message" rows="7"></textarea>
</div>
<button type="submit">Send a Message</button>
</form>
</body>
</html>