Solved

font to big on iPhone

Posted on 2013-01-19
5
345 Views
Last Modified: 2013-01-19
I’ve created a web site in ASP.NET and am using HTML and CSS for design. I am using CSS @font-face to define the fonts. All works great in all browsers even on pad devices. The problem I have is on the iPhone. When I like at the about the text below the ABOUT US it’s too big. Same thing happens in my service areas when I explode the lists – text is too big.

Right now I have the font-size to small. Tried literal pixel for example 8px – same result. Any ideas would be greatly appreciated.

The site is:
www.ogtechllc.com

Thank you
0
Comment
Question by:thenrich
  • 3
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
Kyle Hamilton earned 500 total points
ID: 38796724
add this rule to your css:

-webkit-text-size-adjust: none;

for example:


p{
font-size:16px;
-webkit-text-size-adjust: none;
}
0
 
LVL 5

Author Comment

by:thenrich
ID: 38796935
How does my CSS have scope of WebKit ?
0
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 38796945
not sure what you mean..

The above css rule applies to webkit browsers, which is what the iPhone safari browser is, and it works. Did you try it?
0
 
LVL 5

Author Comment

by:thenrich
ID: 38797223
O I C.

I'll try it.
0
 
LVL 5

Author Closing Comment

by:thenrich
ID: 38797513
Yup - that did it. Thx!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now