ndarville / pony-forum

A modern alternative to ancient forum CMSes like vBulletin and PHPBB in Python on Django. (Alpha stage.) (NB: dotCloud have since removed their free Sandbox tier.)
http://pony-forum.com
26 stars 7 forks source link

Disable iPhone zoom on forms (and textareas) #112

Open ndarville opened 11 years ago

ndarville commented 11 years ago

Previously.

It is possible that this is caused by the font-size, as its CSS differs on the iPhone from other viewports where no such issue exists. Try the two:

This article suggests applying font-size: 16px; to :focus instead to prevent cosmetic changes to the forms and textareas like so:

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    font-size: 16px !important;
}