Hey, I have one css clas, that looks like this:
.floatsToRight { float: right; } my jquery code is doing the following: $('ul.gallery li:not([class="main"]) div.title:even').addClass ('floatsToRight') however, this class is not applied. Instead, if I use the direct css, it works: $('ul.gallery li:not([class="main"]) div.title:even').css('float', 'right') What's more interesting, having defined a sample class like: .yellowBorder{ border: solid 1px yellow; } the code: $('ul.gallery li:not([class="main"]) div.title:even').addClass ('yellowBorder') works! so, is there anything special that I can't apply classes that set the float property? or is this a bug? thanks