jquery filtering not floating left with category selected
jquery filtering not floating left with category selected I am brand new to learning about jQuery. I started with a youtube tutorial (which is a couple years old so I'm sure its a little out of date) and followed it to the tee but when I select one of my cateogry tabs the images disapear but the pictures that remain do not float to the left. My question is what am I miss so the the category images float left when they are selected? Here is my jsfiddle for my code. $(document).ready(function(){ $('.category_item').click(function(){ var category = $(this).attr('id'); if(category == 'all'){ $('.icon').addClass('hide'); setTimeout(function(){ $('.icon').removeClass('hide'); }, 300); } else { $('.icon').addClass('hide'); setTimeout(function(){ $('.' + category).removeClass('hide'); }, 300); } }); }); PS: It's ...