I have a CSS class and I wish to set it's width attribute:
ul.month-wrapper li
{
font-size: 13px;
}
ul.year-wrapper li
{
font-size: 16px;
}
And the Jquery:
var MonthWidth = 30;
var YearWidth = MonthWidth * 12;
// Set CSS classes widths
$('ul.month-wrapper li').css('width', MonthWidth + 'px');
$('ul.year-wrapper li').css('width', YearWidth + 'px');
However this doesn't seem to do anything, widths remain unchanged! Any ideas?
!importantalready being set?