html - Link to id element with offset -
i have fixed title div on top height 80px. have link "how" pointing div.
<div id="how"> <!-- description here --> </div>
however, when click link, because header div out of flow, covers top portion of #how div. how can set offset when click link, brings me down #div link offset of 80px?
unless willing add anchor somewhere (which not first choice), need use js. window.scrollto() place start.
Comments
Post a Comment