Bootstrap + LESS Version: Preventing Zoom on Form Inputs in iOS

Bootstrapless
2017-02-26 10:26 (9 years ago)
Bootstrap + LESS Version: Preventing Zoom on Form Inputs in iOS
.form-control {
  textarea&,
  input[type="color"] &,
  input[type="date"] &,
  input[type="datetime"] &,
  input[type="datetime-local"] &,
  input[type="email"] &,
  input[type="month"] &,
  input[type="number"] &,
  input[type="password"] &,
  input[type="search"] &,
  input[type="tel"] &,
  input[type="text"] &,
  input[type="time"] &,
  input[type="url"] &,
  input[type="week"] &,
  select:focus & {
    font-size: 16px;
  }
}

Reference: html - Disable Auto Zoom in Input "Text" tag - Safari on iPhone - Stack Overflow

Current rating: 2.3 (4)
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Categories

Archive