My target is to show the banner picture first then the navigation menu, and while the <nav>
is scrolled to the top of the screen it sticks there on the top. Also, the site-logo
, overlapping with the banner picture first, will appear on the nav bar when <nav>
is scrolled and sticks on top.
My question is where to place the nav section in html. Should it be moved to the header section? (In this case, what's the best way to originally position it in css for there is a picture
element having several responsive img source tags?) Or should it just stays where it is now, and let the header section to be removed or to wrap the nav?
<body>
<header>
.....
</header>
<div role="banner">
<picture>
</picture>
<div role="site-logo"></div>
</div>
<nav role="navigation menu">
<ul>
</ul>
</nav>
</body>