homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

CSS for opera

5+ Year Member

Msg#: 3159640 posted 9:23 am on Nov 17, 2006 (gmt 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..



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

Msg#: 3159640 posted 2:57 am on Nov 20, 2006 (gmt 0)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved