CSS. Target Opera only
Nowadays this method is mostly obsolete since it is meant for Opera with Presto rendering engine - up to Opera 12.xx versions only. But nonetheless:
This text is red in Opera
HTML code:
<p>This text is red in Opera</p>
CSS code:
doesnotexist:-o-prefocus, p {color: #c00;}
The -o-prefocus pseudo-class allows styling elements for Opera 9.5 - 12.xx only. The code is placed in the common CSS file, not in a separate one as it is in case of Internet Explorer conditional comments.
Source: http://www.opera.com/docs/specs/presto2.12/css/o-vendor/ in web.archive.org.
Browser support
- Windows
- Opera 9.5 - 12.xx
- Linux
- Opera 9.5 - 12.xx