...

View Full Version : safari and chrome page shift



e111982
03-10-2010, 09:21 AM
Hi. I have a webpage.I have written below. It runs on explorer and firefox well. But in chrome,safari and opera when clicked on a menu item the page shifts. When you click In the menu "Ana sayfa" and "Kitaplar" you can see the page shift. I couldnt solve. Could you help?


www.ehlisunnetyolu.org

Excavator
03-10-2010, 10:11 AM
Hello e111982,
You are seeing the page shift over the width of the scrollbar that appears to scroll the longer content. The browsers your page "works" in probably already have a scrollbar there by default.

The solution is to force all browsers to have a scrollbar, even when the content is not long enough to require it.
See how to force a scrollbar (http://nopeople.com/CSS/vertical_scrollbar/index.html).

rnd me
03-10-2010, 10:46 AM
body{
overflow:scroll;
overflow-x:auto;
}

VIPStephan
03-10-2010, 11:00 AM
Just let it shift. That’s nothing to worry about as it is the “natural” behavior.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum