Skip to content

Commit 5656549

Browse files
committed
fix the menu on scroll
1 parent 8aa9fd5 commit 5656549

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ body {
1919
}
2020

2121
header {
22-
position: relative;
22+
position: fixed;
23+
top:0;
24+
width: 100%;
2325
background-color: rgb(8 118 153);
2426
text-align: center;
2527
height: 50px;
@@ -149,7 +151,7 @@ footer {
149151
}
150152

151153
.content {
152-
top: 25%;
154+
top: 15%;
153155
position: absolute;
154156
z-index: 1;
155157
width: 100%;
@@ -326,7 +328,7 @@ p {
326328
}
327329
*/
328330
#home-header {
329-
margin-top: 25px;
331+
margin-top: 70px;
330332
text-align: left;
331333
margin-inline-start: 20%;
332334
margin-inline-end: 20%;

0 commit comments

Comments
 (0)