0

How can fix the size of the font in mobile version if that font of the size is fix for desktop version.

I want that same font in mobile version.when I declared that font in CSS then same font-size will display in mobile version. how to decrease the size of the of the font?

31st Aug 2017, 6:31 PM
Anuranjan Kumar
Anuranjan Kumar - avatar
4 ответов
+ 3
Your question is very unclear... but you could try to define 'font-size' with units relative to viewport size: vw (viewport width), vh (viewport height), vmin (lesser value between both previous), vmax (greater one). Values are percentage of each (ie: 100vw will be exactly the same size as the viewport width, 50vw half and 200vw double...). Something like: body { font-size:3vw; } ... will change size of font relatively to the device width (so bigger font in landscape mode), or when window is resized on desktop. On the other hand, using '3vmin', will make more or less same font-size in any orientation (but you will have more character length on one line in landscape)... To fine tune responsiveness, you can also use @media queries... but that's another history ;P
31st Aug 2017, 7:06 PM
visph
visph - avatar
+ 3
I mean that it couldn't be fully explained in the few lines of a post ^^
1st Sep 2017, 8:54 AM
visph
visph - avatar
0
I am looking mainly for responsive pages. similar looks in mobile version of the text
31st Aug 2017, 6:31 PM
Anuranjan Kumar
Anuranjan Kumar - avatar
0
@visph what do you mean by "but that's another history" ?
1st Sep 2017, 6:54 AM
Feelc