+ 2
How to do fixed header?
Write in comments pls in html or css, i want to only main content move sory for my bad english
1 Odpowiedź
+ 4
Use `position: fixed;` in CSS
Example:
HTML:
<header class="banner">
<!-- Content here -->
</header>
CSS:
.banner {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1000;
}