Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Navbar - CSS #200

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

Closed
Haider-Mukhtar wants to merge 11 commits into quicksnip-dev:main from Haider-Mukhtar:main
Closed
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sticky navbar - css
  • Loading branch information
Haider-Mukhtar committed Jan 6, 2025
commit 5305b4b36fa251bd029fdbd884441989f6bd9f0f
15 changes: 15 additions & 0 deletions snippets/css/layouts/sticky-navbar.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Sticky Navbar
description: Ensure the navbar always shows and remains at the top of the page on scroll.
author: Haider Mukhtar
tags: layout,navbar,sticky
---

```css
.navbar{
position: fixed;
top: 0;
left: 0;
width: 100%;
}
```

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /