Skip to content

Commit b54317a

Browse files
committed
Update index.html
-updated form field and add required attributes -fixed styling by adding flex and updating width on CSS
1 parent fb1e777 commit b54317a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
<style>
1010
body {
11+
display: flex;
12+
flex-direction: column;
1113
align-items: center;
1214
padding: 10px;
1315
}
@@ -16,7 +18,7 @@
1618
margin-bottom: 10px;
1719
}
1820
input {
19-
width: fit-content;
21+
width: 100%;
2022
padding: 15px;
2123
margin-bottom: 10px;
2224
}
@@ -36,6 +38,7 @@ <h1>Product Pick</h1>
3638
id="name"
3739
pattern=".*\S.*\S.*"
3840
placeholder="Enter Your Name"
41+
required
3942
/>
4043
</div>
4144
<div class="email">
@@ -59,6 +62,7 @@ <h1>Product Pick</h1>
5962
name="colour"
6063
id="green"
6164
value="Green"
65+
required
6266
/>
6367
</div>
6468
<div class="size">

0 commit comments

Comments
 (0)