0

Over at my site, I have noticed that while the scrollTo() method in jQuery functions fine in Firefox, it does not go to the top in Chrome.

I think that has something to do with the fact that my <body> tag seems to start away from top of the page, but I have failed to find the CSS that is at fault!

Is this a known issue or have I made a mistake?

http://mildfuzz.com

locrizak
  • 12,192
  • 12
  • 60
  • 80
Mild Fuzz
  • 29,463
  • 31
  • 100
  • 148
  • 1
    The WebKit browsers don't really like doing scrolling via the body element. You might see if things work better if you wrap the body content in a `
    ` that's given no padding, no margin, and 100% height and width. ([I asked kind-of the same question a long time ago](http://stackoverflow.com/questions/1830080/jquery-scrolltop-doesnt-seem-to-work-in-safari-or-chrome-windows).)
    – Pointy Jul 03 '11 at 21:18
  • Post code instead of a link to your site. Once you fix a problem on a site you've linked to the question becomes pointless without code. – Bill the Lizard Jul 04 '11 at 12:44
  • Closed as not a real question? – Mild Fuzz Jul 04 '11 at 16:27

1 Answers1

0

Try $('body, html') instead of just $('body')

locrizak
  • 12,192
  • 12
  • 60
  • 80