Old 14-06-2007, 09:31   #1 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
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, 09:35   #2 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
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, 09:39   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
cool cheers.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 14-06-2007, 09:47   #4 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
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, 09:52   #5 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
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, 10:32   #6 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,088
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)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8