Skip to content
Closed
Changes from all commits
Commits
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
16 changes: 16 additions & 0 deletions snippets/css/layouts/sticky-navbar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
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%;
z-index: 999;
}
```
Loading