Skip to content

Commit bb29f5b

Browse files
author
Ronan
committed
Challenge-2 starter prep - remove floats and widths
1 parent 5e9a75f commit bb29f5b

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

starter/04-CSS-Layouts/challenge-2/styles.css

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ body {
2020
/* background-color: red; */
2121
}
2222

23-
.container::after {
24-
content: "";
25-
display: block;
26-
clear: both;
27-
}
28-
2923
.sale {
3024
background-color: red;
3125
color: white;
@@ -56,23 +50,23 @@ p {
5650
}
5751

5852
.product-img {
59-
float: left;
60-
margin-right: 40px;
53+
/* float: left; */
54+
/* margin-right: 40px; */
6155
}
6256

6357
/* PRODUCT INFO */
6458

6559
.product-info {
66-
margin-right: 40px;
67-
margin-top: 20px;
68-
width: 243px;
69-
float: left;
60+
/* margin-right: 40px; */
61+
/* margin-top: 20px; */
62+
/* width: 243px; */
63+
/* float: left; */
7064
}
7165

7266
.price {
7367
font-size: 20px;
7468
margin-bottom: 5px;
75-
float: left;
69+
/* float: left; */
7670
}
7771

7872
.shipping {
@@ -83,7 +77,7 @@ p {
8377
margin-top: 4px;
8478
margin-bottom: 20px;
8579
margin-left: 20px;
86-
float: right;
80+
/* float: right; */
8781
}
8882

8983
.product-description {
@@ -105,7 +99,7 @@ p {
10599
.color {
106100
width: 20px;
107101
height: 20px;
108-
display: inline-block;
102+
/* display: inline-block; */
109103
margin: 0 5px;
110104
}
111105

@@ -138,8 +132,8 @@ p {
138132
/* PRODUCT DETAILS */
139133

140134
.product-details {
141-
width: 243px;
142-
float: left;
135+
/* width: 243px; */
136+
/* float: left; */
143137
margin-top: 20px;
144138
}
145139

0 commit comments

Comments
 (0)