Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Safari-specific pure CSS hacks are out there?

Tags:

css

safari

I'm wondering if there's any way to write CSS specifically for Safari using only CSS. I know there has to be something out there, but I haven't found it yet.

like image 212
Will Olbrys Avatar asked Sep 16 '08 04:09

Will Olbrys


1 Answers

I think the question is valid. I agree with the other responses, but it doesn't mean it's a terrible question. I've only ever had to use a Safari CSS hack once as a temporary solution and later got rid of it. I agree that you shouldn't have to target just Safari, but no harm in knowing how to do it.

FYI, this hack only targets Safari 3, and also targets Opera 9.

@media screen and (-webkit-min-device-pixel-ratio:0) {
   /* Safari 3.0 and Opera 9 rules here */
}
like image 119
Bryan M. Avatar answered Sep 28 '22 01:09

Bryan M.