Home › Forums › Other › IE not recognizing header tag › Re: IE not recognizing header tag
March 25, 2011 at 2:13 am
#53802
soap
Participant
hahahahahaaha…….. i was inlcuding the header before body…
ANYWAY,
that said,
This code works in Chrome, not Firefox or IE:
$(document).ready(function() {
$('article').click(function(e) {
e.stopPropagation();
var offset = $(this).offset().top - 70;
$('body').animate({scrollTop: offset}, 'slow');
});
});
Maybe I’m missing something really obvious, but don’t think so.
Regretting using HTML5 right now :D