Skip to content

Commit 5305b4b

Browse files
sticky navbar - css
1 parent f4440cd commit 5305b4b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

snippets/css/layouts/sticky-navbar.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}
15+
```

0 commit comments

Comments
 (0)