diff --git a/themes/beautifulhugo/static/css/main.css b/themes/beautifulhugo/static/css/main.css
index a2a82cfd9da5e56c97095a96e8890ff8713df60f..9b1dab4426b2fe3e2fb225dff5bc323b77fd46c8 100644
--- a/themes/beautifulhugo/static/css/main.css
+++ b/themes/beautifulhugo/static/css/main.css
@@ -22,8 +22,7 @@ h1,h2,h3,h4,h5,h6 {
   font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
   font-weight: 800;
   color: #3a5a80;
-  margin-top: -60px;
-  padding-top: 80px;
+  scroll-margin-top: 80px;
 }
 
 a {
@@ -489,7 +488,6 @@ footer .theme-by {
 }
 .intro-header .page-heading h1 {
   margin-top: 0;
-  padding-top: 0;
   font-size: 50px;
 }
 .intro-header .post-heading h1 {