Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS specific rule for Opera 12? [duplicate]

Tags:

css

opera

Possible Duplicate:
How to make CSS visible only for Opera

Many times I need to use browser specific CSS rules to make the design look alike in every browser. Generally I need them for IE 7-8, but this time is for Opera, specifically Opera 12 and on.

I found some solutions for Opera:

  • Make CSS apply only for Opera 11?
  • How to make CSS visible only for Opera

But these only work for 11 or below...

Is there a solution for Opera 12?

like image 475
I.G. Pascual Avatar asked Dec 11 '22 22:12

I.G. Pascual


1 Answers

Here is an officially recommended hack for Opera (in case everything else fails):

doesnotexist:-o-prefocus, .example {
  color: red;
}

http://www.opera.com/docs/specs/presto2.12/css/o-vendor/

via: https://stackoverflow.com/a/4021618

p.s.: notice comment by davehale32, that this hack does not work for IE6. I have no IE6 at my disposal now, so i can't confirm or deny that.

like image 52
c69 Avatar answered Dec 22 '22 00:12

c69