Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
4.50/5 (3 votes)
See more:
Hi please provide me css hack for safari browser.

I am using this hack for google chrome & it also works for safari.

CSS
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .shoppingCartNode
    {
        width:196px !important;
    }
}


But I need css hack for safari only. so that i can set
css class as :-
C#
.shoppingCartNode
{
    width:220px !important;
}


Thanks in advance.
Posted
Updated 21-Jan-20 21:15pm
Comments
Sergey Alexandrovich Kryukov 6-Jul-12 12:25pm    
Why? I cannot imagine the situation where something is needed for Safari only. (Does it mean that it also required to be disastrous with any other browser? :-)
And it looks like you are doing something opposite to adaptive, fluid or flexible design.

I would not hope for any constructive answer without proper explanation why. Most people would hate to help doing bad things. Perhaps you can explain why what normally people consider as bad is actually good for something.
--SA

please check this it might help you..
http://paulirish.com/2009/browser-specific-css-hacks/[^]
 
Share this answer
 
CSS
@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Safari and Chrome, if Chrome rule needed */
    .someClass {
     color:#c00;
    }
    /* Safari 5+ ONLY */
    ::i-block-chrome, .someClass {
     color:#000;
    }
}


Searched for that hack many years, but finally it's available :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900