In the middle of my page I got a tiny menu, when you click a button it will horizontally scroll to the content you've chosen. But when you click it the entire window scrolls so the menu is on the top. Here's the graphical representation of my issue.
http://imgur.com/yJe7wg8
Here's the code I'm going to modify and use:
<div id="left">
<a href="#target1" class="panel">Target 1</a><br/>
<a href="#target2" class="panel">Target 2</a><br/>
<a href="#target3" class="panel">Target 3</a><br/>
<div id="right">
<div class="panel" id="target1" style="background:green">Target 1</div>
<div class="panel" id="target2" style="background:red">Target 2</div>
<div class="panel" id="target3" style="background:yellow">Target 3</div>
+some jQuery to make it slide from #left to #right
Here's the working demo:
http://jsfiddle.net/codeSpy/KyV6L/