Skip to content

Commit a0a256f

Browse files
committed
styling added, containers for styling added in html
1 parent 77b50c7 commit a0a256f

2 files changed

Lines changed: 131 additions & 3 deletions

File tree

Form-Controls/index.html

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,46 @@ <h1>Product Pick</h1>
3434
<!--SIZE 6 options XS,S,M,L,XL,XXL-->
3535
<p>Choose Size:</p>
3636

37+
<div id="sizeDiv">
38+
39+
<div id="xsDiv">
3740
<label for="xs">XS</label>
3841
<input type="radio" id="xs" name="size" value="xs" required>
39-
42+
</div>
43+
44+
<div id="sDiv">
4045
<label for="s">S</label>
4146
<input type="radio" id="s" name="size" value="s">
47+
</div>
4248

49+
<div id="mDiv">
4350
<label for="m">M</label>
4451
<input type="radio" id="m" name="size" value="m">
52+
</div>
4553

54+
<div id="lDiv">
4655
<label for="l">L</label>
4756
<input type="radio" id="l" name="size" value="l">
57+
</div>
4858

59+
<div id="xlDiv">
4960
<label for="xl">XL</label>
5061
<input type="radio" id="xl" name="size" value="xl">
62+
</div>
5163

64+
<div id="xxlDiv">
5265
<label for="xxl">XXL</label>
5366
<input type="radio" id="xxl" name="size" value="xxl">
67+
</div>
68+
</div>
5469

5570
</fieldset>
5671

5772
<div id="buttonGroup">
5873
<button type="submit">Submit</button>
5974
<button type="reset">Reset</button>
6075
</div>
61-
76+
6277
</form>
6378
</main>
6479
<footer>

Form-Controls/styles.css

Lines changed: 114 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,122 @@
11
body{
2-
font-family: sans-serif, Arial, Helvetica;
2+
font-family: Arial, Helvetica, sans-serif;
3+
background-color: lightsalmon;
4+
}
5+
6+
h1{
7+
justify-self: center;
8+
scale: 1.5;
39
}
410

511
fieldset {
12+
background-color: antiquewhite;
13+
position: relative;
614
display: grid;
715
gap: 0.5rem;
16+
max-width: 90%;
17+
justify-self: center;
18+
border: 2px solid ;
19+
margin: auto;
20+
21+
}
22+
23+
legend {
24+
margin: auto;
25+
padding: 1rem;
26+
color: red;
27+
font-size: larger;
28+
text-decoration: underline;
29+
text-decoration-color: black;
30+
position: relative;
31+
top: -10px;
32+
}
33+
select{
34+
padding: 10px;
35+
}
36+
37+
select:focus{
38+
scale: 1.1;
39+
background-color: coral;
40+
color: white;
41+
}
42+
43+
input{
44+
justify-self: center;
45+
padding: 10px;
46+
}
47+
48+
input:focus{
49+
scale: 1.1;
50+
background-color: coral;
51+
color: white;
52+
}
53+
54+
input[type="text", "email"]:valid{
55+
background-color: coral;
56+
57+
}
58+
59+
input:focus::placeholder{
60+
color: white;
61+
}
62+
63+
#sizeDiv {
64+
display: grid;
65+
grid-template-columns: repeat(2,2fr);
66+
justify-items: center;
67+
}
68+
69+
70+
/*input[type="radio"] {
71+
justify-self: baseline;
72+
display: inline-block;
73+
} */
74+
75+
input[type="radio"]:checked {
76+
accent-color: coral;
77+
}
78+
79+
label:active{
80+
color: coral;
81+
}
82+
83+
label{
84+
justify-self: start;
85+
86+
font-weight: bold;
87+
}
88+
89+
p{
90+
justify-self: center;
91+
font-style: italic;
92+
font-size: large;
93+
margin: auto;
94+
padding: 10px;
95+
}
96+
97+
#buttonGroup{
98+
justify-self: center;
99+
font-size: larger;
100+
}
101+
102+
button{
103+
border: 3px solid ;
104+
border-radius: 10px;
105+
font-size: large;
106+
background-color: rgba(209, 105, 68, 0.623);
107+
}
108+
109+
button:hover{
110+
color: rgb(114, 41, 15);
111+
opacity: 0.9;}
112+
113+
button:active{
114+
color: red;
115+
scale: 1.2;
8116
}
9117

118+
footer{
119+
opacity: 0.5;
120+
font-style: italic;
121+
122+
}

0 commit comments

Comments
 (0)