javascript - Fixed header with scrolling content above? -


i building site family business , i'm putting in fixed navigation bar, want company logo , address (above nav bar) disappear when user scrolls, while nav bar stays in place. here link can see i'm talking about: http://lindseymotors.com

i've tried using fixed css attribute causes address , phone number disappear when viewed in landscape orientation reason. know it's possible javascript, i'm hoping avoid , use css.

a working example of i'm going can seen @ http://31dodge.com. notice says kernersville @ top, there nav bar below several buttons (menu, location, phone, car, etc.) - when scroll, kernersville area disappears navigation area remains top whole time, , on desktop version, kernersville logo gets smaller. i'm trying achieve without javascript if possible, if not, appreciate there because javascript efficiency isn't best anymore.

i have changed fixed attribute absolute time being, problem isn't showing right , i'm thinking once scrolling header figured out won't issue.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -