File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 < title > My form exercise</ title >
77 < meta name ="description " content ="" />
88 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
9+
10+ < link rel ="stylesheet " href ="style.css ">
911 </ head >
1012 < body >
1113 < header >
1214 < h1 > Product Pick</ h1 >
1315 </ header >
1416 < main >
1517 < form >
16- < div > < label for ="name "> Name:</ label >
17- < input type ="text " id ="name " name ="customers_name " required pattern =.*\S.*\S.* > </ div >
18+ < div >
19+ < label for ="name "> Name:</ label >
20+ < input type ="text " id ="name " name ="customers_name " required pattern =".*\S.*\S.* ">
21+ </ div >
1822 <!-- 1. What is the customer's name? I must collect this data and
1923 it contains at least two non-space characters. -->
2024 < div > < label for ="mail "> Email:</ label >
@@ -48,9 +52,9 @@ <h1>Product Pick</h1>
4852</ div >
4953<!-- 4. What size does the customer want? I must provide the following 6 options:
5054XS, S, M, L, XL, XXL-->
51- < p class ="button ">
55+ < div class ="button ">
5256 < button type ="submit "> Submit</ button >
53- </ p >
57+ </ div >
5458 </ form >
5559 </ main >
5660 < footer >
Original file line number Diff line number Diff line change 1+ body {
2+ font-family : Arial, sans-serif;
3+ background-color : # f4f4f4 ;
4+ margin : 0 ;
5+ }
6+
7+ header ,
8+ footer {
9+ text-align : center;
10+ padding : 1rem ;
11+ }
12+
13+ main {
14+ display : flex;
15+ justify-content : center;
16+ }
17+
18+ form {
19+ background-color : white;
20+ padding : 2rem ;
21+ margin-top : 2rem ;
22+ width : 320px ;
23+ border-radius : 10px ;
24+ box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.1 );
25+ }
26+
27+ form div {
28+ margin-bottom : 1rem ;
29+ }
30+
31+ label {
32+ display : block;
33+ margin-bottom : 0.4rem ;
34+ font-weight : bold;
35+ }
36+
37+ input ,
38+ select ,
39+ button {
40+ width : 100% ;
41+ padding : 0.6rem ;
42+ box-sizing : border-box;
43+ }
44+
45+ button {
46+ background-color : black;
47+ color : white;
48+ border : none;
49+ border-radius : 5px ;
50+ cursor : pointer;
51+ }
52+
53+ button : hover {
54+ background-color : # 333 ;
55+ }
You can’t perform that action at this time.
0 commit comments