Reply Thread Tools Search this Thread
Old 14-06-2007, 14:31   #1 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,142
target safari only

is there a hack allowing you to target safari only?

I've got some pixel perfect forms that need nudging slightly.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 14-06-2007, 14:35   #2 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 686
Send a message via AIM to d3mcfadden
I use this one
HTML Code:
html[xmlns*=""] body:last-child #selector { ... }
  Reply With Quote
Old 14-06-2007, 14:39   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,142
cool cheers.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 14-06-2007, 14:47   #4 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 686
Send a message via AIM to d3mcfadden
Quote:
Originally Posted by smallbeer
cool cheers.
no problem. on this subject this guy has put together a pretty comprehensive list on how to target specific browsers.
  Reply With Quote
Old 14-06-2007, 14:52   #5 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,142
yeah I just found that by googling the code you posted. ta.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 14-06-2007, 15:32   #6 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Beverly, Massachusetts
Posts: 1,615
If it matters at this point, here is how I did it in the past, but it relies on javascript:
Code:
<script type="text/javascript"> var detect = navigator.userAgent.toLowerCase(); if (checkIt('safari')){ document.write('<style type="text/css">#submit-button {margin-top:8px;}</style>'); } function checkIt(string){ var place = detect.indexOf(string) + 1; return place; } </script>
You could, of course, replace the style element with a link to a safari-only style sheet.
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 


Contact Us - Web Design Forums - Archive
vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8