css - HTML: clicking on different tab maintains the position on the page, but I want it to scroll up -
on website, have buttons link different pages via nav tabs. when buttons clicked, view maintains position (ex: half-way scrolled through page) on new page. scroll top of new tab view (rather stay in middle) can't figure out way this. know way here?
obviously should add code. if you're changing tabs via javascript add bit:
window.scroll(0,0);
that reposition window top of page.
Comments
Post a Comment