sticky header
This commit is contained in:
@@ -22,9 +22,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
|
/* make header fixed to top when the content bellow starts scrolling */
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
position: relative;
|
|
||||||
border-bottom: lightgray 1px solid;
|
border-bottom: lightgray 1px solid;
|
||||||
height: 2.5rem;
|
height: 2.5rem;
|
||||||
alignment-baseline: center;
|
alignment-baseline: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user