Skip to content

Commit 8229f14

Browse files
committed
feat: box-sizing border-box
1 parent 0986daf commit 8229f14

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

starter/04-CSS-Layouts/style.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/* border-top: 10px solid #1098ad; */
33
margin: 0;
44
padding: 0;
5+
/* * Very important attributed */
6+
box-sizing: border-box;
57
}
68

79
/* PAGE SECTIONS */
@@ -48,10 +50,9 @@ aside {
4850
background-color: #f7f7f7;
4951
border-top: 5px solid #1098ad;
5052
border-bottom: 5px solid #1098ad;
51-
/* padding-top: 50px;
52-
padding-bottom: 50px; */
53-
padding: 50px 0;
54-
width: 500px;
53+
padding: 50px 40px;
54+
/* * Very important attributed */
55+
/* box-sizing: border-box; */
5556
}
5657

5758
/* SMALLER ELEMENTS */
@@ -82,6 +83,7 @@ h4 {
8283
font-size: 20px;
8384
text-transform: uppercase;
8485
text-align: center;
86+
margin-bottom: 30px;
8587
}
8688

8789
p {
@@ -134,6 +136,7 @@ li:last-child {
134136

135137
.related {
136138
list-style: none;
139+
margin-left: 0;
137140
}
138141

139142
body {

0 commit comments

Comments
 (0)