How to create a css rule for all elements except one class?!

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2010-03-22T02:19:14Z Indexed on 2010/03/22 2:21 UTC
Read the original article Hit count: 379

Filed under:
|
|

Hi,

I have created a CSS stylesheet for my project. Is there any way I can create a css rule that applies to all table elements EXCEPT table elements belonging to the class "dojoxGrid"? Something like:

.not(dojoxGrid) table{
    width:100%;
    border-top:1px solid #dddddd;
    border-left:1px solid #dddddd;
    border-right:1px solid #dddddd;
    margin:1em auto;
    border-collapse:collapse;
}

Thanks in advance!

© Stack Overflow or respective owner

Related posts about css

Related posts about selectors