Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

best practice font size for mobile

Tags:

html

css

mobile

I have seen this question on SO:

What are the most common font-sizes for H1-H6 tags with this being the recommended font sizes fo H tags:

h1 { font-size: 2em; } h2 { font-size: 1.5em; } h3 { font-size: 1.17em; } h5 { font-size: .83em; } h6 { font-size: .75em; } 

Is there a 'best practice' for these for mobile phones? -say iphone screen size?

like image 782
raklos Avatar asked Feb 07 '12 10:02

raklos


People also ask

What is the average font size for mobile app?

Minimal readable font size for Android is 12 sp, but it is highly recommended to use at least 14 sp for main text.

Is 12px too small for mobile?

Above is an example of Monotypes product pages. On mobile, they have paragraphs and small headings that run around 10px - 12px, which is actually considered too small by Google's standards.

What font size is good for practice?

Optimal font sizes for desktop There are no exact rules for font sizing, but there are some generally good practices to think about when designing for desktop: Body text - Font sizes should be around 16px to 18px for legibility (or 1.6rem to 1.8rem using our sizing rules mentioned above).

Is 14 a good font size?

Size. Choose a font that's at least 16 pixels, or 12 points. If many of your users are older adults, consider using an even larger font size—19 pixels or 14 points. A small font size is more difficult to read, especially for users with limited literacy skills and older adults.


1 Answers

The font sizes in your question are an example of what ratio each header should be in comparison to each other, rather than what size they should be themselves (in pixels).

So in response to your question "Is there a 'best practice' for these for mobile phones? - say iphone screen size?", yes there probably is - but you might find what someone says is "best practice" does not work for your layout.

However, to help get you on the right track, this article about building responsive layouts provides a good example of how to calculate the base font-size in pixels in relation to device screen sizes.

The suggested font-sizes for screen resolutions suggested from that article are as follows:

@media (min-width: 858px) {     html {         font-size: 12px;     } }   @media (min-width: 780px) {     html {         font-size: 11px;     } }   @media (min-width: 702px) {     html {         font-size: 10px;     } }   @media (min-width: 624px) {     html {         font-size: 9px;     } }   @media (max-width: 623px) {     html {         font-size: 8px;     } } 
like image 148
My Head Hurts Avatar answered Sep 20 '22 05:09

My Head Hurts