S
S
Sergey Suntsev2016-12-16 08:56:21
iPhone
Sergey Suntsev, 2016-12-16 08:56:21

How to disable zoom when clicking on select on iphone devices?

Actually, when the select tag is clicked, the scale increases, how to make sure that the scale does not increase?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex-1917, 2018-01-15
@GreyCrew

Here is the real solution, not the so-called solution from the mentioned link, where it is advised user-scalable=no

# Mobile first
input, textarea, select {
  font-size: 16px;
}

# Tablet upwards
@media (min-width: 768px) {
  font-size: 14px;
}

The phone will enlarge the form fields slightly if the text is set to less than 16px. I would suggest setting the text of the mobile form field to 16px and then override the size when viewed from desktops.

H
holymotion, 2016-12-16
@holymotion

stackoverflow.com/questions/6483425/prevent-iphone...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question