webupdate
This commit is contained in:
65
website/public/test-sticky.html
Normal file
65
website/public/test-sticky.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Sticky Test</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background-color: #ffebeb;
|
||||
min-height: 200vh; /* Make it scrollable */
|
||||
}
|
||||
|
||||
.sticky-banner-wrapper {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background: #ffd0d0;
|
||||
}
|
||||
|
||||
.test-navbar {
|
||||
padding: 20px;
|
||||
background: #ffd0d0;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 50px;
|
||||
font-size: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="sticky-banner-wrapper">
|
||||
<div class="test-navbar">
|
||||
<h2>TEST NAVBAR - Should stay at top when scrolling</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<h1>Scroll down to test sticky behavior</h1>
|
||||
<p>Content line 1</p>
|
||||
<p>Content line 2</p>
|
||||
<p>Content line 3</p>
|
||||
<p>Content line 4</p>
|
||||
<p>Content line 5</p>
|
||||
<p>Content line 6</p>
|
||||
<p>Content line 7</p>
|
||||
<p>Content line 8</p>
|
||||
<p>Content line 9</p>
|
||||
<p>Content line 10</p>
|
||||
<p>Content line 11</p>
|
||||
<p>Content line 12</p>
|
||||
<p>Content line 13</p>
|
||||
<p>Content line 14</p>
|
||||
<p>Content line 15</p>
|
||||
<p>Content line 16</p>
|
||||
<p>Content line 17</p>
|
||||
<p>Content line 18</p>
|
||||
<p>Content line 19</p>
|
||||
<p>Content line 20</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user