jmapio / jmapio/jmapio.github.io

Offset the content by the navigation bar height also for direct links

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Liquid
Stars
11
Forks
29
Avg merge
1d 7h
Merged PRs (30d)
7

Description

When linking directly to a section of the spec like this, the title is covered by the navigation bar. There are two ways to offset the content correctly:

  • CSS: Use a positive padding with a negative margin on all headings.
  • JS: Recognize when the page is loaded with an anchor and call the scroll animation with this anchor.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with spec-mail.html and inspect the navigation bar, heading styles, and direct-anchor behavior. Choose the CSS or JS approach described in the issue, then verify that loading #introduction leaves the section title visible below the navigation bar.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.