css - Inconsistent font sizes on smart phone -
i'm tweaking web page looks on smart phones. i've declared @media section in css file can specify font sizes page. here's media section:
@media screen , (max-device-width: 640px) { #termsofuse { padding: 0 2em 0 2em; margin-left: auto; margin-right: auto; color: #777; font: small sans-serif; } #termsofuse p { color: #777; font-weight: bold; font: small sans-serif; padding-top: 1em; padding-bottom: 1em; } #termsofuse #trademark_footer p { font: xx-large sans-serif; } }
however, font sizes showing inconsistently. i've told show fonts "small," 1 section keeps showing fonts in smaller size (id="trademark_footer" @ bottom). using "xx-large" doesn't make font big "small" font in rest of page. i'm viewing page in chrome on android.
also, when view page in following simulator, fonts on entire page tiny—far small read.
first, why font in trademark @ bottom of page showing smaller fonts on rest of page (chrome on android)?
second, why fonts showing small in iphone simulator?
all i'm trying accomplish show fonts in legible size on smart phones.
update:
when specify font sizes explicitly, have same problem. if specify 13px, example, primary font, have specify around 30px on trademark appear @ similar size.
same thing if use "em"s.
update:
i tested in default (i think) browser on samsung galaxy s2 , shows tiny font, too—so small it's illegible. way, in default adroid browser, can double tap, , expands nice size.
tried , didn't seem make difference:
body { -webkit-text-size-adjust: none; }
i've had @ source of page , couldn't see
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
when looked on iphone didn't seem scaling page @ all, suggesting device interpreting size of page , such none of media queries take effect.
adding viewport meta tag should trigger media queries , font changes looking for.
Comments
Post a Comment