Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent heading lines overlap with navbar in desktop mode #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Firdous708
Copy link

@Firdous708 Firdous708 commented Oct 1, 2023

Changes Made

Adjusted the margin-top property for the heading lines within section#hero div.content to ensure proper spacing. This resolves the issue of overlap with the navigation bar in desktop mode.

Fixes #147

Preview

Here's how the page looks after the fix:

Axios.1.mp4

Adjusted the margin-top property for the heading lines within the
section#hero div.content to ensure proper spacing and prevent overlap
with the navigation bar in desktop mode.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Firdous708 ,
I faced the same issue and came here to add it, but found your solution, your solution works well on your device, but by increasing the width of screen, we will face the same issue again.
To prevent this issue from its root, we need to use position sticky instead of fixed, and top 0 is required also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Desktop View: Adjust Navigation Bar to Prevent Overlapping with the Heading Lines.
2 participants