Skip to content

Commit 254f319

Browse files
committed
section-3: Add spacing to index.
1 parent 948c092 commit 254f319

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

starter/03-CSS-Fundamentals/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h4>The Basic Language of the Web: HTML</h4>
1616
<h5>The Basic Language of the Web: HTML</h5>
1717
<h6>The Basic Language of the Web: HTML</h6>
1818
-->
19-
19+
<header class="main-header">
2020
<h1>📘 The Code Magazine</h1>
2121

2222
<nav>
@@ -28,7 +28,7 @@ <h1>📘 The Code Magazine</h1>
2828
</header>
2929

3030
<article>
31-
<header>
31+
<header class="post-header">
3232
<h2>The Basic Language of the Web: HTML</h2>
3333

3434
<img

starter/03-CSS-Fundamentals/style.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* Universal selector. No inheritance. */
22
* {
33
/* border-top: 10px solid *1098ad; */
4+
padding: 0;
5+
margin: 0;
46
}
57

68
/*
@@ -13,6 +15,10 @@ body {
1315
font-family: sans-serif;
1416
}
1517

18+
article {
19+
margin-bottom: 60px;
20+
}
21+
1622
h1, h2, h3 {
1723
color: #1098ad;
1824
}
@@ -25,10 +31,12 @@ h1 {
2531

2632
h2 {
2733
font-size: 40px;
34+
margin-bottom: 30px;
2835
}
2936

3037
h3 {
3138
font-size: 30px;
39+
margin-bottom: 20px;
3240
}
3341

3442
h4 {
@@ -40,10 +48,17 @@ h4 {
4048
p {
4149
font-size: 22px;
4250
line-height: 1.5;
51+
margin-bottom: 50px;
52+
}
53+
54+
ul, ol {
55+
margin-left: 50px;
56+
margin-bottom: 20px;
4357
}
4458

4559
li {
4660
font-size: 20px;
61+
margin-bottom: 10px;
4762
}
4863

4964
li:first-child {
@@ -52,6 +67,7 @@ li:first-child {
5267

5368
li:last-child {
5469
font-weight: italic;
70+
margin-bottom: 0px;
5571
}
5672

5773
li:nth-child(even) {
@@ -62,6 +78,7 @@ aside {
6278
background-color: #f7f7f7;
6379
border-bottom: 5px solid #1098ad;
6480
border-top: 5px solid #1098ad;
81+
padding: 50px 0;
6582
}
6683

6784
/* LVHA */
@@ -125,6 +142,12 @@ nav {
125142

126143
.main-header {
127144
background-color: #f7f7f7;
145+
padding: 20px 40px;
146+
margin-bottom: 60px;
147+
}
148+
149+
.post-header {
150+
margin-bottom: 40px;
128151
}
129152

130153
/* Resolving conflicts. */

0 commit comments

Comments
 (0)