简体   繁体   中英

fixed header positioning issue

Working on my portfolio and came into a problem with positioning - http://harden6615.com/portfolio/index.html - I have a fixed header nav that I used a jquery scroll on and works fine until it passes down through the work section of my site. The fixed header's depth is below the work images instead of above. Messing around with it, I realized it has something to do with position: relative, but do not know how to work around it.

I tried z-index: -1 to my work images, but this breaks the jquery hover I have on them. Anyone know of a solution to fixed positioning or if there is a solution?

Set a higher index to your #floatingbar DIV, rather than lowering the portfolio squares.

#floatingbar {
    z-index: 9999 !important;
}

I tried it in Google Chrome with the google developer tools and it works when i add this to #floatingbar :

position:fixed;
width:960px
z-index:10;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM