📜 ⬆️ ⬇️

Safari safe hack

We have: a heaped form without tables
Needed: move the slide because of the smoothing of the label fonts in Safari
Note: it is safe to move, not css3 properties.

Voila! There is a wonderful property safari only that allows you to move anything anywhere left and right!

-webkit-margin-start
Provides the width of the starting margin.
This value overrides margin-left. If the writing direction is a right-to-left, this value over-margin margin-right. In Safari 2.0, it is -khtml-margin-start.

actually:
label#neposlushnaya {-khtml-magin-start: 5px; -webkit-margin-start: 5px}

and this hack will never work in a different browser except Safari and others that have a common engine (Webkit)
')
Liked?
Take a look at the Safari CSS Reference - there are many interesting things.

By the way, each browser has similar features and official pages with descriptions of proprietary properties.

Source: https://habr.com/ru/post/22266/


All Articles