[Solved] Body overrides menu when scrolling

[Solved] Body overrides menu when scrolling
0

#1

Hi guys,

Can you show me what I did wrong? Body overrides menu when scrolling.

link

Thanks a lot!


#2

put z-index property a higher value,say 1 in your #menu ul part of CSS.(The z-index property specifies the stack order of an element.

An element with greater stack order is always in front of an element with a lower stack order.)
so it will be
#menu ul {
background: lightskyblue;
list-style-type: none;
text-align: right;
margin-left: -15px;
margin-right: -15px;
position: fixed;
z-index: 1;
}

http://www.w3schools.com/cssref/pr_pos_z-index.asp


#3

It works!!! Thanks a lot!!!


#4

You are Welcome :slight_smile: