How Can I Use :not() Without A Page Or Post Id?
I wanted the CSS to apply to all the pages except for one, which is where the :not() comes in. Now the problem is that the page I want to exclude is neither a page nor a post, so i
Solution 1:
Due to comments above, I try if I understand it well.
/* for all pages */
.single-property-image-thumb {
max-width: 90%;
margin: auto;
margin-bottom: -20px;
}
/* different styles for https://cia-agency.co.uk/property/clifton-court-northwick-terrace-london-nw8/
.postid-2114 is class on body element */
.postid-2114 .single-property-image-thumb {
/* there will be styles just for linked page */
margin-bottom: 0;
}
Post a Comment for "How Can I Use :not() Without A Page Or Post Id?"