Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12201

How position affects the attributes of HTML

$
0
0

I have working on the frontend of this e-commerce website . The code is as follows -:

HTML code

<body><header></header><section></section></body>

CSS code

header{  position:fixed;  top: 0;  right: 0;  left: 0;} 

However, despite the fixed positioning of the header, an issue arises where the element appears above it on the webpage.

What is the possible reason for this ?


Viewing all articles
Browse latest Browse all 12201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>