-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.css
62 lines (55 loc) · 1 KB
/
form.css
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
<!DOCTYPE css>
<html>
<head>
<style>
/* Set font styles */
body {
font-family: Arial, sans-serif;
font-size: 16px;
}
/* Center form on the page */
form {
max-width: 500px;
margin: 0 auto;
}
/* Style form labels */
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
/* Style form inputs */
input[type="text"], input[type="email"], textarea {
display: block;
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Style form button */
button[type="submit"] {
display: block;
margin: 0 auto;
padding: 10px 20px;
background-color: #ff6f61;
border: none;
border-radius: 4px;
color: #fff;
font-weight: bold;
cursor: pointer;
}
/* Style form button on hover */
button[type="submit"]:hover {
background-color: #ff866b;
}
/* Style error message */
.error-message {
color: red;
margin-bottom: 10px;
}
<head>
<meta charset="UTF-8">
<title>Inspiration Form</title>
<link rel="stylesheet" href="form.css">
</head>