0
 <ul>
   <li><a href="#idone">item 1</a></li>
   <li><a href="#idtwo">item 2</a></li>
   <li><a href="#idthree">item 3</a></li>
 </ul>

<section id="idone">
        <h3>Item 1</h3>
        <p>Subsection 1</p>
      </section>

      <section id="idtwo">
        <h3>Item 2</h3>
        <p>Subsection 2</p>
      </section>

      <section id="idthree">
        <h3>Item 3</h3>
        <p>Subsection 3</p>
</section>

Pretty much, i have some code like shown above, and when i click the link in the sub navigation i want it to jump to the section of text. It does that, but it seems because of a fixed navigation bar i have which is 41px the heading for the section of text is hidden, but i want that shown. If someone could show me how to offset the scrolling that would be great, thanks.

putvande
  • 15,068
  • 3
  • 34
  • 50

0 Answers0