scrollTop: offset().top not working in Firefox 4 or IE 8
Hello!
I have this bit of jQuery:
- $(document).ready(function() {
- $('article').click(function(e) {
- e.stopPropagation();
- var offset = $(this).offset().top - 70;
- $('body').animate({scrollTop: offset}, 'slow');
- });
It works in Chrome, but not Firefox or IE.
Thanks