How do I target only Safari and Chrome with CSS?

Are you trying to target only Safari and Chrome with CSS? Please insert the following CSS inside one of your active CSS files:



@media screen and (-webkit-min-device-pixel-ratio:0) {

/* Safari and Chrome CSS here */

}

EXAMPLE:

@media screen and (-webkit-min-device-pixel-ratio:0) {

#title {
    color: red !important;
}

}

Search or Browse all topics