Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
<!--[if Safari]> help friends
Old 10-02-2007, 06:59 AM <!--[if Safari]> help friends
Junior Talker

Posts: 1
Name: Allahwala
Trades: 0
Hi,

I have a problem with browser compatibility, i want to attach another css file with my html file but i don't know how will i do it.
i was attached another css file for Internet Explorer like this:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="comments_ie.css" media="screen">
<![endif]-->

but this method not working for Safari can anybody help me friends.

Thanks
Assaboor is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-02-2007, 07:17 AM Re: <!--[if Safari]> help friends
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
those " <!--[if IE]>" tags or conditionnal statements interpreted by ie only, that's why it don't work for safari.

You will need javascript, or a server side language if you need to include a specific stylesheet.

You can find a script that does that here:
http://www.technorealm.co.uk/scripts...detectcss.html

Add an "if (navigator.appName.indexOf('Safari')" to detect safari, and there you go..
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-02-2007, 11:29 AM Re: <!--[if Safari]> help friends
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
This begs the question - why do you need a separate sheet for Safari ?
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-03-2007, 08:53 PM Re: <!--[if Safari]> help friends
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Doesn't Safari run a lot like Firefox? If it does, you should not have any CSS code that you need to have in a separate style sheet only for Safari.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 10-04-2007, 01:51 PM Re: <!--[if Safari]> help friends
babyboy808's Avatar
Average Talker

Posts: 16
Trades: 0
There is no need to have a separate stylesheet for safari. I would make sure the code validates first and there is no redundant code laying about.

Can you show us?
__________________
Keith

Please login or register to view this content. Registration is FREE
babyboy808 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to <!--[if Safari]> help friends
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45500 seconds with 12 queries