Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Why the picture displays on sticky header?

The picture is on header while scrolling but it should be "under it" like some other navs do.
Website

The picture:

.nav3{
float:right;
height:820px;
margin:2px; }


.waterfall {
position: relative;
left:-20%; bottom: 100%; }

<nav class="nav3">
<img class="waterfall" src="../Szablony 3/wodospad.jpg">
</nav>

The sticky element:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

 <header id="header1">

#header1 {
height: 50px;
width: 100%;
background-color:black;
position:sticky ;
top: 0;

>Solution :

Set z-index on navbar to something high.

#header1 {
height: 50px;
width: 100%;
background-color:black;
position:sticky ;
top: 0;
z-index: 1000;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading