Skip to content

Commit 095ddbe

Browse files
Navbar - CSS
1 parent 57d6f98 commit 095ddbe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

snippets/css/layouts/sticky-navbar.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Sticky Navbar
3+
description: Ensure the navbar always shows and remains at the top of the page on scroll.
4+
author: Haider-Mukhtar
5+
tags: layout,navbar,sticky
6+
---
7+
8+
```css
9+
.navbar {
10+
position: fixed;
11+
top: 0;
12+
left: 0;
13+
width: 100%;
14+
z-index: 999;
15+
}
16+
```

0 commit comments

Comments
 (0)