Skip to content

Commit c4ace1e

Browse files
author
Murage-Ivy
committed
Updates styles on the css file
1 parent bbcc3ea commit c4ace1e

File tree

2 files changed

+66
-21
lines changed

2 files changed

+66
-21
lines changed

css/style.css

+63-13
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ body {
1616
overflow-x: hidden;
1717
background-color: #fafafa;
1818
width: 80%;
19-
border: 1px solid black;
2019
}
2120

2221
nav {
@@ -65,7 +64,6 @@ li {
6564

6665
/* Intro class styles */
6766
.intro {
68-
border: 1px solid green;
6967
justify-content: space-between;
7068
margin-top: 60px;
7169
}
@@ -113,6 +111,7 @@ li {
113111
padding: 10px 20px;
114112
border-radius: 15px;
115113
box-shadow: 5px 5px 5px rgb(235, 233, 233);
114+
116115
}
117116
.places {
118117
display: flex;
@@ -152,18 +151,18 @@ select {
152151
background-color: #2549d3;
153152
display: flex;
154153
justify-content: center;
155-
padding: 5px 10px 5px 15px;
154+
padding: 5px 8px 5px 8px;
156155
border-radius: 5px;
157156
color: white;
158157
border-style: none;
158+
159159
}
160160

161161
.material-symbols-rounded {
162162
color: white;
163163
}
164164
/* Start of products styling */
165165
.products {
166-
margin: 100px 100px;
167166
text-align: center;
168167
}
169168

@@ -235,7 +234,6 @@ h2 {
235234
/* Start of properties styling */
236235
.properties {
237236
text-align: center;
238-
margin: 100px 100px;
239237
}
240238

241239
.cards1 {
@@ -245,6 +243,8 @@ h2 {
245243
}
246244

247245
.card1 {
246+
box-shadow: 2px 2px 5px grey;
247+
margin-top: 20px;
248248
background-color: white;
249249
border-radius: 0% 26% 0% 8%;
250250
}
@@ -287,7 +287,7 @@ h2 {
287287
display: flex;
288288
justify-content: center;
289289
margin-bottom: 20px;
290-
gap: 30pt;
290+
gap: 30px;
291291
}
292292

293293
.feedback1 {
@@ -300,6 +300,7 @@ h2 {
300300
.view-more1 {
301301
width: fit-content;
302302
float: right;
303+
margin-top: 20px;
303304
}
304305
/* End of customer feedback style */
305306

@@ -328,7 +329,7 @@ footer {
328329

329330
/* Start of media queries */
330331

331-
@media only screen and (max-width: 960px) {
332+
@media only screen and (max-width: 1000px) {
332333
.row {
333334
flex-direction: column;
334335
}
@@ -361,16 +362,65 @@ footer {
361362
width: 100%;
362363
margin: 0;
363364
}
364-
.card{
365-
padding: 30px 10px 5px;
366-
width: 80%;
367-
border-radius: 10px;
368-
margin-bottom: 10px;
365+
.card {
366+
padding: 30px 10px 5px;
367+
width: 80%;
368+
border-radius: 10px;
369+
margin-bottom: 10px;
369370
}
370371
.products .heading {
371372
text-align: left;
372-
margin-left:40px ;
373+
margin-left: 40px;
374+
}
375+
376+
.choose {
377+
flex-direction: column;
378+
padding: 30px;
379+
}
380+
381+
.choose-info-image3>img{
382+
max-width: 100%;
383+
384+
}
385+
.cards1 {
386+
flex-direction: column;
387+
}
388+
.card1 {
389+
width: 100%;
390+
background-color: white;
391+
border-radius: 0% 26% 0% 8%;
392+
}
393+
394+
.properties {
395+
text-align: center;
396+
margin: 20px;
397+
margin-top: 50px;
398+
}
399+
.image4 {
400+
width: 100%;
373401
}
374402

403+
.feedback {
404+
flex-direction: column;
405+
margin-bottom: 20px;
406+
gap: 30px;
407+
width: 80%;
408+
margin: auto;
409+
}
410+
411+
.customers-feedback {
412+
margin-top: 100px;
413+
margin-left: auto;
414+
margin-right: auto;
415+
text-align: center;
416+
}
417+
418+
.container {
419+
display: block;
420+
}
421+
422+
footer {
423+
height: auto;
424+
}
375425
}
376426
/* End of media queries */

index.html

+3-8
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h3>Make it Official</h3>
127127
</div>
128128

129129
<div class="choose">
130-
<div class="choose-info image3 ">
130+
<div class="choose-info-image3 ">
131131
<img src="./images/image 2.png" alt="brown house">
132132
</div>
133133

@@ -158,8 +158,6 @@ <h2>Why you should choose us.</h2>
158158

159159
</div>
160160

161-
162-
163161
</div>
164162
</div>
165163

@@ -182,10 +180,9 @@ <h2>Our Featured Properties.</h2>
182180
<div>
183181
<p>Duplex <br><span id="price">$2,000</span></p>
184182
</div>
185-
186183
</div>
187-
188184
</div>
185+
189186
<div class="card1">
190187
<img class="image4" src="./images/image 3.png">
191188
<div class="option">
@@ -197,6 +194,7 @@ <h2>Our Featured Properties.</h2>
197194
</div>
198195
</div>
199196
</div>
197+
200198
<div class="card1">
201199
<img class="image4" src="./images/image 5.png">
202200
<div class="option">
@@ -214,7 +212,6 @@ <h2>Our Featured Properties.</h2>
214212
</div>
215213
</div>
216214

217-
218215
<div class="customers-feedback">
219216
<div class="customer-intro">
220217
<h2>Our Esteemed Customers</h2>
@@ -249,9 +246,7 @@ <h5>South Africa</h5>
249246
<div Class="view-more1">
250247
<button class="button">View More</button>
251248
</div>
252-
253249
</div>
254-
255250
</div>
256251

257252
<footer>

0 commit comments

Comments
 (0)