Skip to content

Commit 7c64451

Browse files
committed
vid 37 done
1 parent 28d27a5 commit 7c64451

File tree

2 files changed

+62
-27
lines changed

2 files changed

+62
-27
lines changed

starter/03-CSS-Fundamentals/challange/index.html

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,36 @@
77
<title>Document</title>
88
</head>
99
<body>
10-
<article class="product">
11-
<h2 class="product-title">Converse Chuck Taylor All Star Low Top</h2>
12-
<img
13-
src="https://i.ibb.co/Jr7Wh1d/challenges.jpg"
14-
alt="Chuck Taylor All Star Shoe"
15-
height="250"
16-
width="250"
17-
/>
10+
<div class="container">
11+
<article class="product">
12+
<h2 class="product-title">Converse Chuck Taylor All Star Low Top</h2>
13+
<img
14+
src="https://i.ibb.co/Jr7Wh1d/challenges.jpg"
15+
alt="Chuck Taylor All Star Shoe"
16+
height="250"
17+
width="250"
18+
/>
1819

19-
<p class="product-price"><strong>$65.00</strong></p>
20-
<p class="product-shipping">Free shipping</p>
21-
<p>
22-
Ready to dress up or down, these classic canvas Chucks are an everyday
23-
wardrobe staple.
24-
</p>
20+
<p class="product-price"><strong>$65.00</strong></p>
21+
<p class="product-shipping">Free shipping</p>
22+
<p>
23+
Ready to dress up or down, these classic canvas Chucks are an everyday
24+
wardrobe staple.
25+
</p>
2526

26-
<a class="more-info" href="https://www.converse.com"
27-
>More information &rarr;</a
28-
>
27+
<a class="more-info" href="https://www.converse.com"
28+
>More information &rarr;</a
29+
>
2930

30-
<h3 class="product-details-header">Product details</h3>
31-
<ul class="product-details-list">
32-
<li>Lightweight, durable canvas sneaker</li>
33-
<li>Lightly padded footbed for added comfort</li>
34-
<li>Iconic Chuck Taylor ankle patch</li>
35-
</ul>
31+
<h3 class="product-details-header">Product details</h3>
32+
<ul class="product-details-list">
33+
<li>Lightweight, durable canvas sneaker</li>
34+
<li>Lightly padded footbed for added comfort</li>
35+
<li>Iconic Chuck Taylor ankle patch</li>
36+
</ul>
3637

37-
<button class="add-cart">Add to cart</button>
38-
</article>
38+
<button class="add-cart">Add to cart</button>
39+
</article>
40+
</div>
3941
</body>
4042
</html>

starter/03-CSS-Fundamentals/challange/style.css

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,59 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
border: 0;
5+
}
6+
17
body {
28
font-family: sans-serif;
39
line-height: 1.4;
410
}
511

12+
ul {
13+
padding: 0 20px;
14+
}
15+
16+
li {
17+
margin: 10px 0;
18+
}
19+
20+
p {
21+
margin: 20px 0;
22+
}
23+
24+
h3 {
25+
margin: 20px 0;
26+
}
27+
28+
.container {
29+
width: 800px;
30+
margin: 0 auto;
31+
}
32+
633
.product {
734
border: 4px black solid;
35+
width: 100%;
836
}
937

1038
.product-title {
1139
font-size: 22px;
1240
text-transform: uppercase;
1341
text-align: center;
1442
background-color: #f7f7f7;
43+
padding: 15px;
1544
}
1645

1746
.product-price {
1847
font-size: 24px;
48+
margin-bottom: 0px;
1949
}
2050

2151
.product-shipping {
2252
text-transform: uppercase;
2353
color: #777777;
2454
font-size: 12px;
2555
font-weight: bold;
56+
margin-top: 0px;
2657
}
2758

2859
.more-info {
@@ -45,11 +76,13 @@ body {
4576

4677
.add-cart {
4778
background-color: black;
48-
border: none;
49-
margin-bottom: 1px;
5079
color: white;
5180
font-size: 20px;
5281
cursor: pointer;
82+
width: 100%;
83+
padding: 15px;
84+
text-transform: uppercase;
85+
border-top: 4px solid black;
5386
}
5487

5588
.add-cart:hover {

0 commit comments

Comments
 (0)