fix sticky menu CSS/ Stop sticky menu from jumping
-
I figured out how to move the elements in my php file so that the top bar nav menu is above the header. Formerly it was below. Now I am hoping to get the nav bar to stick to the top when scrolling instead of jumping to the top after a few moments of scrolling.
This theme has a header that when no image is put in there logo pops up so I have 1 px high image in their to work around that in case that makes a difference.
The top bar in the theme was put into a container and this is the html/css:
#top-bar { height:50px; margin-bottom:50px; background:#326ada; width:100%; /* position:fixed; */ z-index:9999; -webkit-backface-visibility: hidden; } #top-bar .container { position: relative; } #top-bar.fixedMenu { margin-top: 0; position: fixed; top: 0px; z-index:99999; opacity: 0.8; }
As far as I can tell this is the only code to be figured out.
my website is http://www.chelseythornton.com, Any feedback would be great!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘fix sticky menu CSS/ Stop sticky menu from jumping’ is closed to new replies.