I am doing the Product Landing page. When I try to position the header as fixed to the top of the page-wrapper, it takes it out of the flow of the document, and other elements are placed as if it does not exist.
HTML:
<div id="page-wrapper">
<!-- if we position header fixed to this page wrapper, will it take it out of document flow? -->
<header>
<div class="logo-div">
<img src="/Nike-logo.png" alt="nike-pic" srcset="">
</div>
<nav>
<ul>
<li><a href="">Home</a></li>
<li><a href="">Pricing</a></li>
<li><a href="">About</a></li>
</ul>
</nav>
</header>
</div>
CSS:
#page-wrapper{
position: relative;
}
header{
position: fixed;
top: 0px;
display: flex;
justify-content: space-around;
align-items: center;
padding: 0 20px;
min-height: 75px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36.
Hey. Sorry. I believe you responded to me. I’m sorry.
Is there any way you can help me with my issue? For the Product Landing Page…when I try to position my header fixed to the page wrapper…it takes the header out of the flow of the document. I appreciate your help. Thank you.