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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -