css-specificity

jquery : alternate row colour in table except cell with class to keep background colour

Hi, I am new to jquery. I have this in my code: $("tbody tr:odd ").addClass("alt"); with css: tbody tr.alt td { background-color: #e6EEEE; } I have a cell in table with <td class="coloron"> Right now, the every other row command is over riding my class="coloron". How can I maintain my cell unique colour while having every...

Overwrite CSS class selectors without !important

I'm just writing a javascript UI dialog for a web app. The problem is that users can create there own themes for the web app, which may include element css selectors (h1 {...}, div {...} etc.) which overwrite my css formatting for the UI dialog. The dialog is a div element which is formatted over a class selector (id dose not work becaus...