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-
9+ < link rel =" stylesheet " href =" style.css " >
1010
1111 </ head >
1212 < body >
Original file line number Diff line number Diff line change 1+ body {
2+ font-family : Arial, sans-serif;
3+ margin : 0 ;
4+ padding : 20px ;
5+ background-color : # f5f5f5 ;
6+ }
7+
8+ header ,
9+ footer {
10+ text-align : center;
11+ margin-bottom : 20px ;
12+ }
13+
14+ h1 {
15+ margin-bottom : 10px ;
16+ }
17+
18+ main {
19+ display : flex;
20+ justify-content : center;
21+ }
22+
23+ form {
24+ background-color : white;
25+ padding : 20px ;
26+ border-radius : 8px ;
27+ width : 100% ;
28+ max-width : 450px ;
29+
30+ display : flex;
31+ flex-direction : column;
32+ gap : 16px ;
33+ }
34+
35+ label {
36+ font-weight : bold;
37+ }
38+
39+ input [type = "text" ],
40+ input [type = "email" ] {
41+ width : 100% ;
42+ padding : 10px ;
43+ font-size : 16px ;
44+ box-sizing : border-box;
45+ }
46+
47+ fieldset {
48+ border : 1px solid # ccc ;
49+ padding : 16px ;
50+ }
51+
52+ legend {
53+ font-weight : bold;
54+ padding : 0 6px ;
55+ }
56+
57+ fieldset label {
58+ font-weight : normal;
59+ margin-right : 6px ;
60+ }
61+
62+ fieldset input [type = "radio" ] {
63+ margin-right : 16px ;
64+ margin-bottom : 10px ;
65+ }
66+
67+ button {
68+ padding : 12px ;
69+ font-size : 16px ;
70+ cursor : pointer;
71+ }
72+
73+ footer p {
74+ font-size : 14px ;
75+ }
You can’t perform that action at this time.
0 commit comments