Solved

scrolling issue

Posted on 2011-02-15
2
271 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
multiple selects 23 61
Date on a table 16 33
Asp response.write to clients 6 32
Use "if not" in a condition 2 18
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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 how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

679 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