Relative div is passing over fixed div while scrolling page

1–2 minutes

read

Relative div is passing over fixed div while scrolling page

To solve this problem we should use property name z-index.

oL3E0

So now ,

HTML

="navcontainer">This is navigation
="movable_relative"  
="text">text 
</div>

CSS

#navcontainer
{
    position:fixed;
    z-index:3;
}

.movable_relative
{
    position:relative; 
    z-index:2;
}

I hope your problem will now be solved.

Leave a comment