Disable Parent Links in Nested List Navigation Reference HTML

/ Published in: HTML
Save to your folder(s)

Copy this code and paste it in your HTML
  1. <ul id="navigation">
  2. <li><a href="#your-link-here">Nav 1</a></li>
  3. <ul class="sub-navigation">
  4. <li><a href="#your-link-here">SubNav 1</a></li>
  5. <li><a href="#your-link-here">SubNav 2</a></li>
  6. <li><a href="#your-link-here">SubNav 3</a></li>
  7. </ul>
  8. <li><a href="#your-link-here">Nav 2</a></li>
  9. <li><a href="#your-link-here">Nav 3</a></li>
  10. <li><a href="#your-link-here">Nav 4</a></li>
  11. </ul>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.