Skip to content

Commit 06d6456

Browse files
committed
css challenge 2
1 parent e1e6150 commit 06d6456

File tree

2 files changed

+31
-5
lines changed

2 files changed

+31
-5
lines changed

starter/02-HTML-Fundamentals/challenge.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2 class="main-heading">Converse Chuck Taylor All Star Low Top</h2>
1313
</header>
1414
<p class="price-tag"><strong>$65.00</strong></p>
1515
<p class="free-shipping">Free Shipping</p>
16-
<p>
16+
<p class="tag-line">
1717
Ready to dress up or down, these classic canvas are an everyday wardrobe
1818
stapple
1919
</p>

starter/02-HTML-Fundamentals/style.css

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
16
body {
27
font-family: sans-serif;
38
line-height: 1.5;
4-
border: 5px solid black;
9+
510
color: #444;
611
}
712
.main-heading {
813
text-align: center;
14+
font-size: 22px;
915
text-transform: uppercase;
1016
background-color: #f7f7f7;
17+
18+
padding: 19px 0;
1119
}
1220

1321
.price-tag {
@@ -19,6 +27,11 @@ body {
1927
color: #a5a0a0;
2028
text-transform: uppercase;
2129
font-size: 12px;
30+
margin-bottom: 20px;
31+
}
32+
33+
.tag-line {
34+
margin-bottom: 10px;
2235
}
2336

2437
.info:link,
@@ -35,10 +48,14 @@ body {
3548
.details {
3649
text-transform: uppercase;
3750
font-weight: bold;
51+
margin-bottom: 20px;
52+
margin-top: 20px;
3853
}
3954

4055
.features {
4156
list-style: square;
57+
margin-left: 20px;
58+
margin-bottom: 10px;
4259
}
4360

4461
button {
@@ -48,14 +65,23 @@ button {
4865
background-color: black;
4966
border: none;
5067
font-size: 20px;
68+
width: 100%;
69+
height: 60px;
5170
}
5271

5372
button:hover {
5473
cursor: pointer;
5574
color: black;
5675
background-color: white;
76+
border-top: 4px solid black;
5777
}
5878

59-
/* article {
60-
font-size: 20px;
61-
} */
79+
article {
80+
border: 5px solid black;
81+
width: 825px;
82+
margin: 50px auto;
83+
}
84+
85+
li {
86+
margin-bottom: 9px;
87+
}

0 commit comments

Comments
 (0)