SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Location
    Offerdal, Jämtlands Län, Sweden, Sweden
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with pages from a template

    Hi,
    I have a really stupid problem which is driving me nuts as I cannot figure out how to solve it.
    The website www.angechark.se - if you look at i.e. the pages http://www.angechark.se/pages/historik.html and http://www.angechark.se/pages/snabbfakta.html , the pages "jump" when I go from one to the other. The same with some of the other pages on this website.
    I have created these pages using the same template, and even if I try to resave the "historik.html" page as "snabbfakta.html" and just edit the content, it doesnt work.
    Would be very grateful for any help!
    Thanks in advance!

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,296
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Hi jmandersson. Welcome to the forums.

    What do you mean by "jumps"? What browser are you using? I see a jump, but it's because I'm using Chrome, and Chrome keeps offering to translate the page (by inserting a message at the top) ... but that's the only jump I see.

  3. #3
    SitePoint Member
    Join Date
    Feb 2013
    Location
    Offerdal, Jämtlands Län, Sweden, Sweden
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi ralph.m. Thanks for your reply!
    The page "moves" a few pixels to the left or to the right (depending on which pages I am visiting) - not much but enough to be really annoying, especially since I cant figure out why...Same thing in all browsers I have checked (IE, firefox, safari, chrome)...

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    That is most likely due to the browser scrollbar; if the page is too long to fit in one window the scrollbar will appear and thus the content will seem to move left to account for the presence of the scrollbar on the right. If you have a very small browser window and view both those pages you will notice it won't move left since the scrollbar would already be in place. Unless you mean something else regarding the content moving?

  5. #5
    SitePoint Member
    Join Date
    Feb 2013
    Location
    Offerdal, Jämtlands Län, Sweden, Sweden
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just got the solution :-)
    Added this to the stylesheet which worked :-)

    html {
    overflow-y: scroll;
    }

    thanks a million for your help though!


Tags for this Thread

Bookmarks

Posting Permissions

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