D
D
Darth Vader2015-12-13 10:10:23
css
Darth Vader, 2015-12-13 10:10:23

Is it possible to set specific styles for the Safari browser?

Hello. Interested in such a question, is it possible to determine that the client has a safari browser and show him a different style of the element using css?
For example, for Firefox, I use the following rule and everything works, but for Safari I don’t know if there is anything similar

@-moz-document url-prefix(){
.class {
    width: 25%;
}
}

Google did not find anything, maybe the search query was not correct.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-12-13
@blackdarthvader

@media screen and (-webkit-min-device-pixel-ratio:0) {     
    ::i-block-chrome,.class {
     width: 25%;
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question