Skip to content

Commit 648737b

Browse files
committed
Switched the default box model from content-box into border-box, globally using universal selector. So that elements can automatically adjust their dimensions and fit into the layout.
1 parent 9cb1cbf commit 648737b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

starter/04-CSS-Layouts/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ aside {
5050
background-color: #f7f7f7;
5151
border-top: 5px solid #1098ad;
5252
border-bottom: 5px solid #1098ad;
53-
/* padding-top: 50px;
54-
padding-bottom: 50px; */
55-
padding: 50px 0;
56-
width: 500px;
53+
padding: 50px 40px;
54+
box-sizing: border-box;
5755
}
5856

5957
/* SMALLER ELEMENTS */
@@ -84,6 +82,7 @@ h4 {
8482
font-size: 20px;
8583
text-transform: uppercase;
8684
text-align: center;
85+
margin-bottom: 30px;
8786
}
8887

8988
p {
@@ -132,6 +131,7 @@ li:last-child {
132131

133132
.related {
134133
list-style: none;
134+
margin-left: 0;
135135
}
136136

137137
li:first-child {

0 commit comments

Comments
 (0)