Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

CSS for opera



9:23 am on Nov 17, 2006 (gmt 0)

10+ Year Member

CSS for opera

Anybody aware of css hacks for opera (7+ version)
ex - hacks
•*left:50px – for IE7
•_left:10px – for IE6
•html > body #left:10px – for mozilla, ie7 and opera

is there any hack, specific to opera. I want to write a class only for opera..
Similarly does anybody know about the safari hacks.
Kindly asap..


2:57 am on Nov 20, 2006 (gmt 0)

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Welcome to WebmasterWorld designer123. I'm only aware of one method of feeding a rule to Opera 7.x and over without affecting other browsers, and its usefulness will be limited to the extent that it depends on features not yet implemented in other browsers. Once those other browsers catch up, then the hack will become less and less useful.

The syntax is as follows:

@media all and (min-width: 0px){
p {

A more detailed explanation can be found here [virtuelvis.com].

As Opera is one of the most standards-compliant browsers out there, it is almost always better to make the page work without hack in Opera and Firefox and save the hacks for IE6 etc. using conditional comments.


Featured Threads

Hot Threads This Week

Hot Threads This Month