var section = $('.section'); var width = section.width(); if (width < 960) section.addClass('.section-slim');
Can anyone see what is wrong with this? I'm not getting the added class.
remove the dot in the class name:
section.addClass('section-slim');
More on CSS Grammar