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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Different in chrome than firefox

    Hi,

    I'm creating a website where I am using a already made scrollbar, and it works fine, but I am having problems with it on one of my sub-pages. It doesn't scroll all the way down, but it's only in some browsers.

    In Firefox and IE it works fine but it doesn't scroll all the way down in chrome and safari.
    But it's only on one sub-page.

    you can see what I meen on: wearecrunch.dk/gammelsjuf
    And then click on sposors

    then you can see the difference from firefox and chrome for example, it doesn't scroll all the way down in chrome.

    I'm kind of lost, I don't know if it is the HTML, CSS or the scroll javascript page.

    Can someone please help me out does someone know what it could be.

    If you'd like I can post any code that you want, in order for you to help me out.
    It would really help me out alot.

    Thank you

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    First guess: The Sponsors tab is the only tab with images. It seems like the scrollbar is being generated before the images have been fully loaded and this causes problems in Webkit based browsers.

    Try to wait until the images finished loading maybe using $(window).load() instead of $(document).ready()

  • #3
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah I think you are right that that's the reason, because if I delete the pics then it works

    But where is it I should insert $(window).load() I can't seem to find where I used: $(document).ready()

    What file should I change it in? is it in the javascript?

  • #4
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I actually ended up getting it to work just by defining the width and hight of every picture. so now it works

    Thank you very much for your help

  • #5
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    Yeah right ... I should have mentioned that in the first place but it just escaped me :-(


  •  

    Tags for this Thread

    Posting Permissions

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