Possible Duplicate:
What’s the difference in the :not() selector between jQuery and CSS?
How to write CSS selector for a class 'ui-content'
. But it should not be child of a id 'ui-container'
?
I tried with following selector in CSS.
.ui-content:not(#ui-container > .ui-content) {
//styles goes here
}
But it does work in jquery like $('.ui-content:not(#ui-container > .ui-content)')
, but not in pure CSS.
How to correct this CSS selector?
Does all selectors working with jquery doesn't work with pure CSS selectors?