Skip to content

Commit 286b232

Browse files
committed
styling input fields
1 parent dff7e98 commit 286b232

File tree

2 files changed

+48
-19
lines changed

2 files changed

+48
-19
lines changed

css/store.css

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,13 @@ html{
103103
border: none;
104104
display: block;
105105
padding: 0;
106-
margin-bottom:1em ;
107-
gap: 1em;
106+
margin-bottom:1.5em ;
107+
gap: .5em;
108108
}
109109

110110
.form-container input{
111-
height: 2em;
111+
height: 1.5em;
112+
font-size: 1.2rem;
112113
}
113114

114115
#personal-info{
@@ -146,7 +147,28 @@ html{
146147
/* styling address field set ----------------- */
147148
#address-info{
148149
display: grid;
149-
padding: 0;
150+
151+
}
152+
153+
#address-info input{
154+
margin-bottom: 1em;
155+
}
156+
157+
#address-info span{
158+
display: grid;
159+
grid-template-areas:
160+
"city post"
161+
"inp1 inp2";
162+
gap: .5em;
163+
}
164+
/* #address-info span>*{
165+
display: block;
166+
} */
167+
168+
169+
#address-info label::after, #personal-info label::after{
170+
content: "*";
171+
color: var(--hover-color);
150172
}
151173

152174
/* styling radio buttons */
@@ -160,19 +182,31 @@ html{
160182
#karma-radio-color legend{
161183
grid-column: 1/-1;
162184
grid-row: 1;
185+
margin-top: 1em;
163186
}
164187

165-
#karma-radio-color #karma-red{
188+
#karma-red{
166189
grid-column: 1;
167190
grid-row: 2;
191+
display: flex;
192+
align-items: center;
193+
justify-content: flex-start;
194+
168195
}
169196

170-
#karma-radio-color #space-grey{
197+
#space-grey{
171198
grid-column: 2;
172199
grid-row: 2;
200+
display: flex;
201+
align-items: center;
202+
justify-content: flex-start;
173203
}
174204

175205

206+
207+
208+
/* section-2 image part -------------*/
209+
176210
.section-2-store{
177211
grid-column: 2/-1;
178212

level-2/store.html

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,25 @@ <h1>
4444
Order your Karma WiFi device today!
4545
</h1>
4646
<form class="form-container">
47+
4748
<fieldset id="personal-info">
48-
<!-- <div>
49-
<label for="fname">First Name:</label>
50-
<input type="text" id="fname" name="fname"/>
51-
</div>
52-
<div>
53-
<label for="lname">Last Name:</label>
54-
<input type="text" id="lname" name="lname">
55-
</div> -->
5649
<label for="fname" id="label-fname">First Name:</label>
5750
<input type="text" id="fname" name="fname"/>
5851
<label for="lname" id="label-lname">Last Name:</label>
5952
<input type="text" id="lname" name="lname">
6053
</fieldset>
54+
6155
<fieldset id="address-info">
6256
<label for="address">Address: </label>
6357
<input type="text" id="address" name="address"/>
6458
<label for="address-2">Address 2:</label>
6559
<input type="text" id="address-2" name="address-2"/>
66-
<label for="city">City:</label>
67-
<input type="text" id="city" name="city">
68-
<label for="post-code">Post Code:</label>
69-
<input type="text" id="post-code" name="post-code"/>
70-
60+
<span id="city-post">
61+
<label for="city">City:</label>
62+
<label for="post-code">Post Code:</label>
63+
<input type="text" id="city" name="city">
64+
<input type="text" id="post-code" name="post-code"/>
65+
</span>
7166
</fieldset>
7267

7368

0 commit comments

Comments
 (0)