if( $(window).width() < 900 ) { console.log(\"Less\");}else { console.log(\"More\");}
// On Resize$(window).resize(function() { if( $(this).width() < 900 ) { console.log(\"Less\"); }else { console.log(\"More\"); }});
I know there's a simple solution but I cant find it.
How do I change the css of something if the browser window width is less than a certain number of pixels… using jquery.
Thanks
Rohan Merchant
if( $(window).width() < 900 ) {
console.log(\"Less\");
}else {
console.log(\"More\");
}