WP-Mix

A fresh mix of code snippets and tutorials

CSS Target Opera

Here are some nice CSS techniques for targeting old and new versions of Opera.

/* Opera <= 9 */
html:first-child .selector { 
	 color: red;
} 

/* Opera > 10 */ 
@media not all and (-webkit-min-device-pixel-ratio:0) {  
	.selector {  
		  color: red;
	}  
}

/* Opera > 10 */
x:-o-prefocus, .selector { 
	 color: red;
}

The last one is pretty new.. you can see it in action here.

★ Pro Tip:

Digging Into WordPressGA Pro