Dynamic Width Adjustment

Feb 20, 2013 at 9:44 AM
Hi, I'm struggling to find a way to dynamically alter the width of my gallery. I've tried adding this jquery:
$('.overview').width($('img.wns_lightbox_image').length * 300);
However the css width overrides this somehow in:
#scrollbar2 .overview { list-style: none; width: 5700px; padding: 0; margin: 0; position: absolute; left: 0; top: 0;  }
I tried removing the width attribute but this doesn't work.

Anyone have any ideas?