Website elements and fonts are too small in mobile devices
You can try adding the viewport
<meta>
tag :
<meta name="viewport" content="width=device-width, initial-scale=1">
- Using the viewport meta tag to control layout on mobile browsers
Font size extremely small on mobile devices
Have you added the viewport meta tag to your document?
If not, add this to your head section:
<meta name="viewport" content="width=device-width, initial-scale=1">
A mobile browser will naturally attempt to zoom out to display your entire web page like a desktop browser. The viewport meta tag scales your page to the device width.
More information:
- A tale of two viewports ~ QuirksMode.org
- Using the viewport meta tag to control layout on mobile browsers ~ MDN
Why font seems smaller on mobile or tablet than the corresponding browser size?
The viewport meta tag tells the browser that your site is responsive ready and allows the browser to scale your site to device pixels rather than actual pixels. This should emulate a narrower viewport with the content appearing larger on screen at a more natural size. This tag should be placed in the head
section of your HTML file.
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Why font sizes (and other elements) appear so small on mobile devices
-webkit-text-size-adjust: none | auto | <percentage>;
So, twice as big would be: -webkit-text-size-adjust: 200%;
Getting the right font-size on every mobile device
You should be using Media Queries for different device widths.
@media only screen and (max-width: 768px) {
b {
font-size: 20px;
}
}
@media only screen and (max-width: 320px) {
b {
font-size: 10px;
}
}
And so on...
text too small to read (mobile design)
Try to use:
meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
It'll work
Your code above, it makes everything looks smaller in mobile device because you used initial-scale=0.3. And when you use initial-scale=1 like I said, you should restyle something in your code to make your web look better.
CSS Fit font size to mobile devices/smaller screens
You would have to target retina display in that case. There is different ways of approaching that. Most likely you are doing a fully responsive site so I would recommend just doing a media query to target retina "hi-res" and set your font-size, margins ect.
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
/* Retina-specific stuff here */
}
Source: css-tricks.com
Related Topics
Django Doesn't Display Newline Character When Rendering Text from Database
Changing Image Src Depending on Screen Size
Redirect Mobile Devices to Alternate Version of My Site
Svg Animation Delay on Each Repetition
Can You Do This HTML Layout Without Using Tables
Can HTML5 Websockets Connect 2 Clients (Browsers) Directly Without Using a Server? (P2P)
How (And Why) to Use Display: Table-Cell (CSS)
HTML5 Autoplay Video in Mobile Device
In The Dom Are Node Ids Case Sensititve
How to Semantically Provide a Caption, Title or Label for a List in HTML
Hide Microdata Property Value in 'Content' Attribute
<Input Type="File"> Limit Selectable Files by Extensions
Vscode Not Auto Completing HTML
What Does It Mean When The Form Action Attribute Is "#" (Number/Pound Symbol/Sign/Character)
How to Use an Image as a Submit Button