A
A
Alexander Kudryashov2016-06-28 13:53:38
JavaScript
Alexander Kudryashov, 2016-06-28 13:53:38

How to make different fonts for different browsers?

Good afternoon.
How can I make Safari display a different font, and chrome, for example, another one? Should this be done with javascript?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2016-06-28
@AppFA

Check which browser via JS, add a class to the html tag, for example:
And then do what you need in css:

body {
    font: Arial, sans-serif;
}

.browser-safari body {
    font: Helvetica, sans-serif;
}

R
Rafael™, 2016-06-28
@maxminimus

what for?
add your fonts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question