ThemeForest

Multiple CSS not selectors.

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Hey I can’t find a solution on Google.

I want to have multiple CSS :NOT Selectors but both ways I’ve tried doesn’t work. The resolution is, that also other #left-contents (without the class blogpage or eventpage) get the css commands. If I would remove the second not-class, it would work fine.

But what I want is that both classes are excluded

Any Ideas?

#left-content :not(.blogpage, .eventpage) img
#left-content :not(.blogpage) :not(.eventpage) img
296 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 1-2 years
  • Sold between 50 000 and 100 000 dollars
  • United Kingdom
  • Microlancer Beta Tester
  • Referred between 10 and 49 users
  • Bought between 1 and 9 items
TommusRhodus says

No Ideas, but if you’re working on something for TF then remember that :not isn’t IE8 friendly :(

3570 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Exclusive Author
  • Beta Tester
  • Has been a member for 3-4 years
  • Spain
+3 more
pezflash says

...

EDIT: posted an option, but tested and doesn’t work. Sorry

399 posts
  • Bought between 1 and 9 items
  • Estonia
  • Exclusive Author
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Most Wanted Bounty Winner
  • Sold between 100 and 1 000 dollars
kriskorn says

Maybe with a little bit of jQuery – http://api.jquery.com/not-selector/ ?

296 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 1-2 years
  • Sold between 50 000 and 100 000 dollars
  • United Kingdom
  • Microlancer Beta Tester
  • Referred between 10 and 49 users
  • Bought between 1 and 9 items
TommusRhodus says

How about this, assuming .blogpage & .event page are divs, asigning them a second, shared identifier class;

#left-content div:not(.xyz) img

EDIT: Just realized I got the wrong end of the stick… ugh :(

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

Hm I didn’t want to use jquery for that.

So I could not use :not selectors because of IE8??? What should I do instead? But I also saw themes without IE8 support here on Themeforest

3570 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Exclusive Author
  • Beta Tester
  • Has been a member for 3-4 years
  • Spain
+3 more
pezflash says
2481 posts Nice Guy
  • Most Wanted Bounty Winner
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Has been a member for 5-6 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Won a Competition
  • Bought between 100 and 499 items
  • Exclusive Author
  • Referred between 200 and 499 users
+4 more
RubenBristian says

Got it: http://jsfiddle.net/RM8nZ/27/

Doesn’t work in FF 16

3570 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Exclusive Author
  • Beta Tester
  • Has been a member for 3-4 years
  • Spain
+3 more
pezflash says


Got it: http://jsfiddle.net/RM8nZ/27/
Doesn’t work in FF 16

Really? F*, created on FF17.

EDIT: strange, it works on IE9, Chrome and Opera.

123 posts
  • Austria
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
LovelessDesign says

thanks for your enthusiasm in solving this problem ;) yeah I already tried :not(.eventpage):not(.blogpage) too. Doesn’t work for me in FF 16

by
by
by
by
by