Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-02-2010, 03:27 PM   #1
Cyber Fucker
Hmm
 
Cyber Fucker's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
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]-->
And IE does this style sheet but Opera won't listen to analogical comment:

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?
__________________
Cyber Fucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-02-2010, 03:42 PM   #2
mikke
Confirmed User
 
mikke's Avatar
 
Industry Role:
Join Date: Jan 2010
Location: Europe
Posts: 1,327
try

Code:
<!--[if Opera]><link rel="stylesheet" href="css/Opera9Fixes.css" type="text/css" media="screen" /><![endif]-->
__________________
icq: 395 294 346
http://www.adultsubmitter.eu - submit any adult site to 20 directories from 1 form!
now 20 domains!
http://www.porndeals.eu http://www.ebonybangbros.com
mikke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2010, 11:21 AM   #3
Cyber Fucker
Hmm
 
Cyber Fucker's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
still not work, bump
__________________
Cyber Fucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2010, 11:40 AM   #4
SCORE Ralph
Confirmed User
 
SCORE Ralph's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Miami, FL
Posts: 2,090
Conditional comments are for IE5+ on Windows systems only. It's not supported by other browsers as its something developed for/by IE.
__________________
GetSCORECash.com | In the Biz Since 1991
Big Tits | Granny & MILFs | Amateurs | Big Booty | Foot Fetish | BBW | Teens
Hosted Embeds | MP4s | RSS Feeds | FHGs | Model Directory
SCORE Ralph is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2010, 11:51 AM   #5
BestXXXPorn
Confirmed User
 
BestXXXPorn's Avatar
 
Join Date: Jun 2009
Location: Asheville, NC
Posts: 2,277
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']
__________________
ICQ: 258-202-811 | Email: eric{at}bestxxxporn.com

Last edited by BestXXXPorn; 05-05-2010 at 11:53 AM..
BestXXXPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2010, 01:45 PM   #6
LoveSandra
So Fucking Banned
 
Join Date: Aug 2008
Location: Just Blow Me
Posts: 10,551
bump bump
LoveSandra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2010, 01:49 PM   #7
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by Cyber Fucker View Post
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]-->
And IE does this style sheet but Opera won't listen to analogical comment:

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?
I don't know what are you trying to do, but AFAIK Opera has to behave exactly the same than Chrome, FF and Safari, conditionals are for IE because it's a non-compliant browser
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2010, 01:53 PM   #8
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
IE is the retarded older brother... nuff said...
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2010, 11:52 AM   #9
Cyber Fucker
Hmm
 
Cyber Fucker's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
Quote:
Originally Posted by BestXXXPorn View Post
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']
Thank you for the suggestion man! I did it similarly to your advice. I built JavaScript to detect the browser and to replace css style sheet, and it works! At least when JavaScript is enabled.
__________________
Cyber Fucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-12-2010, 12:00 PM   #10
The Truth Hurts
Zph7YXfjMhg
 
The Truth Hurts's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: In Your Skull
Posts: 15,290
Code:
@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Safari-Opera specific declarations here */
}
saw this somewhere.. try it.
The Truth Hurts is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.