Skip to content

Commit a5ba9e3

Browse files
committed
Moved style block to the head section
1 parent 6453378 commit a5ba9e3

1 file changed

Lines changed: 33 additions & 32 deletions

File tree

Form-Controls/index.html

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,39 @@
66
<title>My form exercise</title>
77
<meta name="description" content="Form for ordering T-Shirts" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
9+
10+
<style>
11+
form div {
12+
margin-bottom: 10px;
13+
}
14+
#name,
15+
#email,
16+
#colour {
17+
padding: 10px;
18+
font-size: 1rem;
19+
border: 1px solid black;
20+
border-radius: 5px;
21+
}
22+
23+
input[type="text"],
24+
input[type="email"],
25+
select {
26+
width: 100%;
27+
max-width: 400px;
28+
padding: 20px;
29+
box-sizing: border-box;
30+
}
31+
32+
button {
33+
background-color: blue;
34+
color: white;
35+
padding: 10px 20px;
36+
border: none;
37+
border-radius: 8px;
38+
font-size: 1.5rem;
39+
cursor: pointer;
40+
}
41+
</style>
942
</head>
1043
<body>
1144
<header>
@@ -113,38 +146,6 @@ <h1>Product Pick - T-Shirt Order Form</h1>
113146
</select>-->
114147

115148
<button type="submit">Place Your Order</button>
116-
<style>
117-
form div {
118-
margin-bottom: 10px;
119-
}
120-
#name,
121-
#email,
122-
#colour {
123-
padding: 10px;
124-
font-size: 1rem;
125-
border: 1px solid black;
126-
border-radius: 5px;
127-
}
128-
129-
input[type="text"],
130-
input[type="email"],
131-
select {
132-
width: 100%;
133-
max-width: 400px;
134-
padding: 20px;
135-
box-sizing: border-box;
136-
}
137-
138-
button {
139-
background-color: blue;
140-
color: white;
141-
padding: 10px 20px;
142-
border: none;
143-
border-radius: 8px;
144-
font-size: 1.5rem;
145-
cursor: pointer;
146-
}
147-
</style>
148149
</form>
149150
</main>
150151
<footer>

0 commit comments

Comments
 (0)