Skip to content

Commit cb53827

Browse files
committed
changes
1 parent edcab77 commit cb53827

File tree

4 files changed

+229
-160
lines changed

4 files changed

+229
-160
lines changed

starter/03-CSS-Fundamentals/challenges/shoes.html

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,31 @@
1010
<a href="../index.html">Home</a>
1111
<a href="index.html">Challenges</a>
1212
</nav>
13+
<div class="product">
14+
<article>
15+
<h1 class="product-title">Converse Chuck Taylor All Start Low Top</h1>
16+
<img
17+
src="../img/challenges.jpg"
18+
height="250"
19+
width="250"
20+
alt="an image of black canvas shoes"
21+
/>
22+
<h3 class="price">$65.00</h3>
23+
<p class="free-shipping">Free Shipping</p>
24+
<p>
25+
Ready to dress up or down, these classic canvas Chucks are an everyday
26+
wardrobe staple.
27+
</p>
28+
<a href="#">More information &rarr;</a>
29+
<h2>Production Details</h2>
30+
<ul>
31+
<li>Lightweight, durable canvas sneaker</li>
32+
<li>Lightly padded footbed for added comfort</li>
33+
<li>Iconic Chuck Taylor ankle patch</li>
34+
</ul>
1335

14-
<article>
15-
<h1 class="item-title">Converse Chuck Taylor All Start Low Top</h1>
16-
<img
17-
src="../img/challenges.jpg"
18-
height="250"
19-
width="250"
20-
alt="an image of black canvas shoes"
21-
/>
22-
<h3 class="price">$65.00</h3>
23-
<p class="free-shipping">Free Shipping</p>
24-
<p>
25-
Ready to dress up or down, these classic canvas Chucks are an everyday
26-
wardrobe staple.
27-
</p>
28-
<a href="#">More information &rarr;</a>
29-
<h2>Production Details</h2>
30-
<ul>
31-
<li>Lightweight, durable canvas sneaker</li>
32-
<li>Lightly padded footbed for added comfort</li>
33-
<li>Iconic Chuck Taylor ankle patch</li>
34-
</ul>
35-
36-
<button>Add to cart</button>
37-
</article>
36+
<button>Add to cart</button>
37+
</article>
38+
</div>
3839
</body>
3940
</html>

starter/03-CSS-Fundamentals/css/shoes.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ body {
33
font-size: 15px;
44
}
55

6+
.product {
7+
width: 825px;
8+
margin: 20px auto;
9+
}
10+
611
article {
712
border: 5px solid black;
813
}
@@ -11,19 +16,24 @@ h1 {
1116
text-align: center;
1217
}
1318

14-
.item-title {
19+
.product-title {
20+
background-color: #f7f7f7;
1521
text-transform: uppercase;
22+
padding: 10px;
1623
}
1724

1825
.free-shipping {
1926
font-size: 12px;
2027
font-weight: bold;
2128
text-transform: uppercase;
2229
color: #777;
30+
margin-top: 0;
2331
}
2432

2533
.price {
2634
font-size: 20px;
35+
margin-top: 2px;
36+
margin-bottom: 0;
2737
}
2838

2939
ul {
@@ -52,4 +62,6 @@ a:hover {
5262
button {
5363
background-color: black;
5464
color: white;
65+
width: 100%;
66+
height: 50px;
5567
}

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

Lines changed: 57 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,39 @@
11
* {
2-
/* border-top: 10px solid #1098ad; */
2+
margin: 2px;
3+
padding: 0;
34
}
45

56
body {
7+
color: #444;
68
font-family: sans-serif;
79
font-size: 22px;
10+
border-top: 10px solid #1098ad;
11+
}
12+
13+
.container {
14+
width: 800px;
15+
margin: 0 auto;
16+
position: relative;
17+
}
18+
19+
.main-header {
20+
background-color: #f7f7f7;
21+
padding: 20px;
22+
margin-bottom: 60px;
823
}
924

1025
nav {
11-
text-align: center;
1226
font-size: 16px;
13-
text-decoration: underline;
27+
margin-top: 2px;
1428
}
1529

30+
/* nav a:link {
31+
background-color: orangered;
32+
margin: 20px;
33+
padding: 20px;
34+
display: block;
35+
} */
36+
1637
h1,
1738
h2,
1839
h3,
@@ -26,6 +47,7 @@ h1,
2647
h2,
2748
h3 {
2849
color: #1098ad;
50+
/*margin-bottom: 40px;*/
2951
}
3052

3153
h1 {
@@ -36,10 +58,15 @@ h1 {
3658

3759
h2 {
3860
font-size: 40px;
61+
/* margin-bottom: 30px; */
3962
}
4063

4164
h3 {
4265
font-size: 30px;
66+
/*
67+
margin-bottom: 10px;
68+
margin-top: 10px;
69+
*/
4370
}
4471

4572
h4 {
@@ -50,10 +77,19 @@ h4 {
5077

5178
p {
5279
line-height: 1.5;
80+
margin-bottom: 15px;
81+
}
82+
83+
ul,
84+
ol {
85+
margin-left: 50px;
86+
margin-bottom: 20px;
5387
}
5488

5589
li {
5690
font-size: 20px;
91+
margin-bottom: 10px;
92+
/* display: inline; */
5793
}
5894

5995
/* footer p {
@@ -82,18 +118,16 @@ li {
82118
list-style: none;
83119
}
84120

85-
.main-header {
86-
background-color: #f7f7f7;
121+
.post-header {
122+
margin-bottom: 40px;
87123
}
88124

89125
aside {
90-
background-color: #f7f7f7;
126+
background-color: #d4d4d4;
91127
border-top: 5px solid #1098ad;
92128
border-bottom: 5px solid #1098ad;
93-
}
94-
95-
.border {
96-
border-bottom: 5px solid #3a3b3b;
129+
padding: 5px 0px;
130+
width: 500px;
97131
}
98132

99133
li:first-child {
@@ -102,6 +136,7 @@ li:first-child {
102136

103137
li:last-child {
104138
font-style: italic;
139+
margin-bottom: 0;
105140
}
106141

107142
li:nth-child(even) {
@@ -122,3 +157,15 @@ a:hover {
122157
color: orangered;
123158
font-weight: bold;
124159
}
160+
button {
161+
font-size: 22px;
162+
padding: 20px;
163+
cursor: pointer;
164+
position: absolute;
165+
bottom: 50px;
166+
right: 50px;
167+
}
168+
.post-img {
169+
width: 100%;
170+
height: auto;
171+
}

0 commit comments

Comments
 (0)