Skip to content

Commit

Permalink
sticky navbar - css
Browse files Browse the repository at this point in the history
  • Loading branch information
Haider-Mukhtar committed Jan 6, 2025
1 parent f4440cd commit 5305b4b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions snippets/css/layouts/sticky-navbar.md
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%;
}
```

0 comments on commit 5305b4b

Please sign in to comment.