jquery - how to move vertical scroll bar on clicking an element to display the content correctly? -
i have multiple sections(sec1, sec2, sec3, ..) on page. page opened clicking navigation tab (which further have sub-tabs sec1, sec2, sec3,..). when click on sub-tab, want vertical scroll bar move display corresponding section page. in advance.
an id
can used create anchor start of element. can use href
attribute of a
tags in navigation tab link these anchors.
here jsbin understand better: http://jsbin.com/ogewifu/1. css visualize sections better.
source: http://www.w3.org/tr/html401/struct/links.html#h-12.2.3
Comments
Post a Comment