Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

anchor links scrolling too far

<!-- content to be placed inside <body>…</body> -->
<ul>
  <li><a href="#s1">link 1</a>
  <li><a href="#s2">link 2</a>
  <li><a href="#s3">link 3</a>
  <li><a href="#s4">link 4</a>
</ul>
<div id="s1" class="first">1</div>
<div id="s2">2</div>
<div id="s3">3</div>
<div id="s4">4</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #anchor #links #scrolling
ADD COMMENT
Topic
Name
5+9 =