ashwin_m Posted May 2, 2007 Share Posted May 2, 2007 Does anybody know how to hide css styles from opera browser. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted May 2, 2007 Share Posted May 2, 2007 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. Quote Link to comment Share on other sites More sharing options...
emehrkay Posted May 3, 2007 Share Posted May 3, 2007 if im not mistaken, opera is the most css compliant browser available.. why hide css from it? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted May 3, 2007 Share Posted May 3, 2007 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. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted May 3, 2007 Share Posted May 3, 2007 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.