Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

scrolling issue

Posted on 2011-02-15
2
Medium Priority
?
285 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

636 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