Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    safari and chrome page shift

    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

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    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.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,379
    Thanks
    11
    Thanked 592 Times in 572 Posts
    Code:
    body{
      overflow:scroll;
      overflow-x:auto;
    }
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.6, IE11:9.1, IE9:3.1, IE10:3.0, FF:17.2, CH:46, SF:11.4, NON-MOUSE:38%

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,728
    Thanks
    6
    Thanked 1,015 Times in 988 Posts
    Just let it shift. That’s nothing to worry about as it is the “natural” behavior.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •