Skip to content

Commit edbc58f

Browse files
committed
remove margin-bottom and margin-top and including in margin
1 parent 5fc7652 commit edbc58f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

css/navbar.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@
2424
}
2525

2626
.navbar {
27-
padding: 0.3em;
27+
padding: 0.2em;
2828
display: flex;
2929
flex-direction: row;
3030
justify-content: space-between;
3131
margin: 0;
3232
}
3333

3434
#home {
35-
padding: 0.3em;
35+
padding: 0.2em;
3636
align-self: center;
3737
}
3838

3939
.nav-link {
40-
padding: 1em;
40+
padding: 0.7em;
4141
color: var(--default-font-color);
4242
text-decoration: none;
4343
transition: all 0.5s ease-in-out;

css/styles.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ p {
2323
color: var(--default-font-color);
2424
font-family: var(--default-font-family);
2525
max-width: 650px;
26-
margin-top: 0.5em;
27-
margin-bottom: 0.5em;
26+
margin: 0.5em 0;
2827
}
2928

3029
h1,
3130
h2,
3231
h3 {
3332
font-family: "Raleway", sans-serif !important;
33+
margin: 0.7rem 0;
3434
}
3535

3636
/* % always with the property width */
@@ -39,9 +39,7 @@ section {
3939
/* for guide */
4040
/* border: solid 3px aqua; */
4141
width: 60%;
42-
margin: 0 auto;
43-
margin-top: 3em;
44-
margin-bottom: 3em;
42+
margin: 3em auto;
4543
padding-top: 2em;
4644
height: calc(100vh - 6em);
4745
z-index: 2;

0 commit comments

Comments
 (0)