Of course you can! I'm actually working on something similar to that now. $(window).resize(function(){ reSize(); }); function reSize() { if ($('#page').width() < 1000) { //do something } http://2whoa.com
--- On Fri, 12/4/09, pab <fliawebdes...@gmail.com> wrote: From: pab <fliawebdes...@gmail.com> Subject: [jQuery] is there a way to add a class to the body when window is resized below a certain width To: "jQuery (English)" <jquery-en@googlegroups.com> Date: Friday, December 4, 2009, 9:39 PM is there a way to add a class to the body when window is resized below a certain width