Skip to content

Commit 789b461

Browse files
committed
fix(forms): add margin to form for readability
1 parent 3d2a08f commit 789b461

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE html>
22
<html lang="en-us">
33
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width">
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width" />
66
<title>Favorite fruit length constraint</title>
77
<style>
88
input:invalid {
@@ -14,25 +14,34 @@
1414
}
1515

1616
div {
17-
margin-bottom: 10px;
17+
margin-bottom: 1rem;
18+
}
19+
form {
20+
margin: 2rem 0 2rem 0;
1821
}
1922
</style>
2023
</head>
2124

22-
<body>
25+
<body>
2326
<form>
2427
<div>
2528
<label for="choose">Would you prefer a banana or a cherry?</label>
26-
<input id="choose" name="i_like" required minlength="6" maxlength="6">
29+
<input id="choose" name="i_like" required minlength="6" maxlength="6" />
2730
</div>
2831
<div>
2932
<label for="number">How many would you like?</label>
30-
<input type="number" id="number" name="amount" value="1" min="1" max="10">
33+
<input
34+
type="number"
35+
id="number"
36+
name="amount"
37+
value="1"
38+
min="1"
39+
max="10"
40+
/>
3141
</div>
3242
<div>
3343
<button>Submit</button>
3444
</div>
3545
</form>
36-
</body>
37-
46+
</body>
3847
</html>

0 commit comments

Comments
 (0)