In my html page, i fixed my header with :
position : fixed
When i scroll down, then content of my page pass over the header. How can i fix this?
Assuming your HTML is the following:
<div id="header">...</div>
<div id="content">...</div>
Try the following CSS:
<style type="text/css">
#header {
position:fixed;
z-index:1;
}
#content {
position:relative;
z-index:2;
}
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With