A
A
Artyom2018-02-19 23:29:09
css
Artyom, 2018-02-19 23:29:09

Why doesn't top: -50px work on safari iOS?

5a8b3306810f4853974793.jpeg
Actually the essence of the issue. In chrome on android, slider pointers are correctly centered using the top: -50px attribute, but not in safari on iPhone.
https://www.laneson.com/kickstarter/ - link

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sdgroup14, 2018-02-20
@KubrickHabr

in general IOS is my favorite topic... Remember IOS is strongly typed. Apparently top does not have negative values. I had the same trick with a button in the form of a div through js click. Clicking on a div didn't work until I styled that div with cursor: pointer.... Here's a crutch with IOS try using transform: translateY(-50px); instead of top

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question