K
K
kim1232020-05-11 12:57:10
css
kim123, 2020-05-11 12:57:10

Is there any way to set the style for the safari browser only?

The site has a font that is rendered differently in different browsers, for example, in safari its height will be less than that of Google / Yandex, etc. browsers. Is it possible to somehow set styles that will only work in safari?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Fedorov, 2020-05-11
@aliencash

I see 2 solutions:
1. Find a js library to detect a browser.
2. Use Google Fonts. In theory, he should choose the necessary font for each specific browser.

K
KeeVeeG, 2020-05-11
@KeeVeeG

In css use prefix-apple-

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question