![]() |
CSS Conditional Comment for Opera
I'm trying to force Opera 9 and earlier versions of this browser to accept conditional css stylesheets but it won't listen to me. :(
For example for IE6 I use: Code:
<!--[if IE 6]><link rel="stylesheet" href="css/IE60Fixes.css" type="text/css" media="screen" /><![endif]--> Code:
<!--[if Opera 9]><link rel="stylesheet" href="css/Opera9Fixes.css" type="text/css" media="screen" /><![endif]--> How to force this bitch to listen to my comments? :helpme |
try
Code:
<!--[if Opera]><link rel="stylesheet" href="css/Opera9Fixes.css" type="text/css" media="screen" /><![endif]--> |
still not work, bump
|
Conditional comments are for IE5+ on Windows systems only. It's not supported by other browsers as its something developed for/by IE.
|
What I recommend doing is just reading the browser's agent string in PHP or some other server side scripting you may be using...
Then echo/print out the css include tag only if it matches your required parameters. $_SERVER['HTTP_USER_AGENT'] |
bump bump
|
Quote:
|
IE is the retarded older brother... nuff said...
|
Quote:
|
Code:
@media screen and (-webkit-min-device-pixel-ratio:0) { |
All times are GMT -7. The time now is 06:28 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123