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)

New User

10+ Year Member

joined:Apr 21, 2005
votes: 0

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)

Senior Member from CA 

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

joined:Aug 31, 2003
votes: 6

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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members