Jump to content

css hacks for opera browsers


ashwin_m

Recommended Posts

This will hide it from everything else than IE:

<!--[if IE]>
<style type="text/css">
test
</style>
<![endif]-->

 

I don't think there are any ways of making CSS visible to Opera only using HTML only. Then you'd have to use PHP or Javascript to check the browser.

Link to comment
Share on other sites

if im not mistaken, opera is the most css compliant browser available.. why hide css from it?

 

You could choose to hide CSS from Opera because it should not apply the "hack" stylesheets intended for e.g. Internet Explorer. I'm still waiting for the day where IE will  be on the same level, in terms of standard compliance, as the other browsers on the market so these hacks are unnecessary.

Link to comment
Share on other sites

IE7 has taken some massive steps...

 

But I have to say that I have not used a css hack in a very long time.  xhtml1.1 dtd makes ie6 behave much better and I try to avoid using css that ie just doesn't play ball with (like position: fixed). The result being that sites tend to have a very consistent look and feel cross-browser so I am happy ;)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.