[jQuery] addClass('floatsToRight') doesn't work, but .css('float', 'right') does

2009-12-10 Thread Łukasz Podolak
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:

Re: [jQuery] addClass('floatsToRight') doesn't work, but .css('float', 'right') does

2009-12-10 Thread Leonardo K
Maybe you have a style that override the float right property. 2009/12/10 Łukasz Podolak lukasz.podo...@gmail.com 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])