Solved

scrolling issue

Posted on 2011-02-15
2
249 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
2 Comments
 
LVL 8

Accepted Solution

by:
imantas earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

896 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now