I want to apply CSS to all pages except sidebars. Let me show you an example
.page #buddypress ul.group li
I want to apply CSS to all <li>
tags that are children of ul.group
class. Problem here is that this class is also exist in sidebar and I don't want to change styling of sidebar. I just want to apply CSS to the page section and not to the sidebar.
I except some kind of :not(.class)
operation to do that.
Here is what I am trying to do
.page :not(.sidebar) #buddypress ul.group li
But this trick doesn't work for me. I really appreciate if someone could solve my problem. I want to apply CSS to all sections except sidebar.
Here is what my HTML looks like:
<body>
<div id="buddypress">
<ul class="groups">
<li> </li>
</div>
<div class="sidebar">
<ul class="groups">
<li> </li>
</div>