A
A
Alexey Komosa2021-09-22 22:56:11
css
Alexey Komosa, 2021-09-22 22:56:11

Why does safari 12 show crooked styles on mac?

Hello! Please tell me such a thing - why in safari 12.1.2 site styles are displayed very crookedly? Although in all other browsers there are no problems.

614b8a2a30b4e426952473.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Volkov, 2021-09-23
@komosa

Due to cross browser.
Here you can check if the browser supports a particular property (for example, flexbox):
https://caniuse.com/flexbox
614b9dfeeede1108894181.png
You need to add reset.css
And write styles already with the addition of prefixes.
Prefix examples:
-moz- is used in Firefox;
-ms- is used in Edge and Internet Explorer;
-webkit- is used in Safari, Chrome, and browsers based on the WebKit and Blink engines;
-o- - used in older versions of the Opera browser running on the Presto engine. Since 2013, Opera has switched to the Blink engine.
Code example:

-webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap;

Или использовать Gulp/Webpack, которые автоматом могут добавить нужные префиксы.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question