fix bug with scrolling content behind header

This commit is contained in:
Mateo Körber Belmonte
2025-02-22 00:37:30 +01:00
parent 6f1284a79f
commit e5a9653493
2 changed files with 15 additions and 2 deletions
+12 -1
View File
@@ -19,7 +19,7 @@
font-style: italic; font-style: italic;
margin: 0; margin: 0;
padding: 10px; padding: 10px;
background: #ffffff; /*background: #ffffff;*/
position: fixed; position: fixed;
width: 100%; width: 100%;
z-index: 2; z-index: 2;
@@ -89,6 +89,17 @@
height: 100vh; height: 100vh;
z-index: 1; z-index: 1;
} }
.header {
width: 100%;
height: 60px;
background-color: rgb(255, 255, 255);
z-index: 2;
position: fixed;
top: 0;
left: 0;
z-index: 2;
}
</style> </style>
</head> </head>
+3 -1
View File
@@ -43,7 +43,9 @@ function loadWeek(week) {
const container = document.querySelector('body'); const container = document.querySelector('body');
container.innerHTML = ` container.innerHTML = `
<h1>Freuen Sie sich auf:</h1> <div class="header">
<h1>Freuen Sie sich auf:</h1>
</div>
<div class="content"> <div class="content">
<div class="ticker-wrapper"> <div class="ticker-wrapper">
<div class="ticker-content"> <div class="ticker-content">