Skip to content

Commit d0daa00

Browse files
committed
add: scroll padding
1 parent d4ef32f commit d0daa00

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

css/extra.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
body {
22
background-color: #363636;
33
}
4+
html {
5+
scroll-padding-top: 50px;
6+
}
47
p, .navbar-menu a, .title {
58
color: white;
69
}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333
<div class="navbar-menu">
3434
<div class="navbar-start">
35-
<a href ="#" class="navbar-item">Home</a>
35+
<a href ="#home" class="navbar-item">Home</a>
3636
<a href="#projects" class="navbar-item">Projects</a>
3737
</div>
3838
<div class="navbar-end">
@@ -47,7 +47,7 @@
4747
</nav>
4848
<!-- END NAVIGATION -->
4949
<!-- START MAIN -->
50-
<section class="hero is-primary">
50+
<section class="hero is-primary" id="home">
5151
<div class="hero-body">
5252
<div class="container">
5353
<div class="greeting columns is-mobile">

0 commit comments

Comments
 (0)