Home › Forums › JavaScript › Need to add padding to top of headers › Re: Need to add padding to top of headers
January 10, 2013 at 8:35 pm
#120605
DesignLady94
Member
Looks like this is resolved, thanks to an answer posted here:
http://stackoverflow.com/questions/7306933/how-to-detect-window-size-and-then-do-something-with-jquery-switch-statement.
Thanks so much for your help!
$(document).ready(function() {
var width = $(window).width();
if (width > 979 ) {
$(‘.nav li a’).click(function() {
$(‘h1, h2’).addClass(‘toppad’);
});
}
});