Skip to content

Commit 9b77bdc

Browse files
committed
section-3: Challenge #2.
1 parent d2a8f21 commit 9b77bdc

File tree

1 file changed

+18
-1
lines changed
  • starter/03-CSS-Fundamentals/challenge-1

1 file changed

+18
-1
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* {
2+
margin: 0;
3+
padding: 0;
4+
}
5+
16
body {
27
font-family: sans-serif;
38
line-height: 1.4;
@@ -15,9 +20,12 @@ a:hover {
1520

1621
button {
1722
background-color: black;
18-
border: none;
23+
border: 0;
24+
border-top: 4px solid black;
1925
color: white;
26+
padding: 20px 0;
2027
text-transform: uppercase;
28+
width: 100%;
2129
}
2230

2331
button:hover {
@@ -28,19 +36,27 @@ button:hover {
2836

2937
li {
3038
list-style-type: square;
39+
margin-left: 20px;
40+
margin-bottom: 10px;
3141
}
3242

3343
h2, h4 {
3444
text-transform: uppercase;
45+
margin-bottom: 15px;
46+
margin-top: 30px;
3547
}
3648

3749
.product {
3850
border: 4px solid black;
51+
margin: 50px auto;
52+
width: 825px;
3953
}
4054

4155
.product-header {
4256
background-color: #f7f7f7;
4357
font-size: 22px;
58+
margin: 0;
59+
padding: 15px;
4460
text-align: center;
4561
}
4662

@@ -52,5 +68,6 @@ h2, h4 {
5268
color: #777;
5369
font-size: 12px;
5470
font-weight: bold;
71+
margin-bottom: 20px;
5572
text-transform: uppercase;
5673
}

0 commit comments

Comments
 (0)