Skip to content

Commit

Permalink
experiment: tweak CSS to offset intrapage jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemire60 committed Apr 22, 2024
1 parent daac107 commit ceafa86
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
16 changes: 15 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -994,4 +994,18 @@ table th {
body {
font-family: "Open Sans", arial, sans-serif;
line-height: 1.5;
}
}


/* Add styles to adjust for the fixed header */
/* This fixes ToC jumps to show doc titles */
/* source: https://www.geeksforgeeks.org/how-to-set-offset-an-html-anchor-element-to-adjust-fixed-header-in-css/, option 1 */
#target-element {
display: block;
position: relative;
top: -70px;

/* Replace with the height of your fixed header */
visibility: hidden;
}

15 changes: 0 additions & 15 deletions pubhist.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,6 @@
permalink: /pubhist.html
---

<style>
/* Add styles to adjust for the fixed header */
/* This fixes ToC jumps to show doc titles */
/* source: https://www.geeksforgeeks.org/how-to-set-offset-an-html-anchor-element-to-adjust-fixed-header-in-css/, option 1 */
#target-element {
display: block;
position: relative;
top: -70px;

/* Replace with the height of your fixed header */
visibility: hidden;
}
</style>


<main id="main">
<section>
<div class="container" id="introduction">
Expand Down

0 comments on commit ceafa86

Please sign in to comment.