forked from zero-to-mastery/house-organiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnav.css
55 lines (45 loc) · 880 Bytes
/
nav.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#navbar{
z-index: 1;
overflow: hidden;
background-color: #333;
}
#navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: -webkit-sticky; /* Safari */
position: sticky;
top: 0;
}
#navbar li {
float: left;
}
#navbar li a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
#navbar li a:hover {
background-color: #222;
}
.active {
background-color: #9b59b6;
}
/* Page content */
.content {
padding: 16px;
}
.sticky {
position: fixed;
top: 0;
width: 100%
}
/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
padding-top: 60px;
}