Skip to content

Commit a67be9d

Browse files
author
lintsang
committed
added css style to form
1 parent 462ce6b commit a67be9d

2 files changed

Lines changed: 36 additions & 3 deletions

File tree

Form-Controls/css/style.css

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
11
h1{
2+
font-family: 'Times New Roman', Times, serif;
23
font-size: 1.5rem;
3-
}
4+
}
5+
fieldset{
6+
background-color: #becce2;
7+
border: 2px solid #c0cde0;
8+
border-style: solid;
9+
border-radius: 0.5em;
10+
margin: 1em auto;
11+
padding: 1em;
12+
width: 40em;
13+
max-width: 800px;
14+
}
15+
16+
legend{
17+
color: #222;
18+
background-color: #f6f9ff;
19+
font-size: 90%;
20+
padding: 1em 2em;
21+
border: solid 1px #becce2;
22+
border-radius: 0.3em;
23+
24+
25+
}
26+
fieldset > div{
27+
padding: 0.5em 3em;
28+
display: grid;
29+
grid-template-columns: 2fr 4fr;
30+
}
31+
input, select, button{
32+
border: solid 1px #becce2;
33+
padding: 4px;
34+
font-size: 1em;
35+
border-radius: 0.3em;
36+
}

Form-Controls/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ <h1>Product Pick</h1>
1515
<main>
1616
<form>
1717
<fieldset>
18-
<lengend>
19-
Person name and email</lengend>
18+
<legend>
19+
Person name and email</legend>
2020
<div class="form-group">
2121
<label for="fullname">Full Name:</label>
2222
<input type="text" id="fullname" required minlength="2">

0 commit comments

Comments
 (0)