I think that $(this) may not work in that context.
See if this works: $('.panel').each(function(){ $(this).css(/*set CSS here*/); });
I think that $(this) may not work in that context.
See if this works: $('.panel').each(function(){ $(this).css(/*set CSS here*/); });