?
Solved

scrolling issue

Posted on 2011-02-15
2
Medium Priority
?
279 Views
Last Modified: 2012-05-11
I have the following site:

http://simmonskidz.com/datagrid/box/global_ranking.html

When the user selects a tab, the browser scroll bar on the right  readjusts the page.  What is causing this and how do I stop this.
0
Comment
Question by:MsKrissy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
imantas earned 2000 total points
ID: 34902882
If you're talking about the behavior where it automatically scrolls down a little, then you need to add onclick="return false" to your "tabs":
<ul class="tabs">
  <li><a href="#one" onclick="return false"><font color="#666666">Overall Ranking</font></a></li>
  <li><a href="#two" onclick="return false"><font color="#666666">Friends Stats</font></a></li>
  <li><a href="#three" onclick="return false"><font color="#666666">Status Stats</font></a></li>
  <li><a href="#four" onclick="return false"><font color="#666666">Photo Stats</font></a></li>
</ul>

Open in new window


But if it's about the scrollbar and the change of its size, then it's caused by the element you create and try to hide somewhere at the bottom outside the visible area. Even though it is not visible it requires some space in the page as the other elements, so you need to allocate it to ensure your scrollbar stays fixed.
0
 

Author Closing Comment

by:MsKrissy
ID: 34903197
Perfect, thanks you.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question