Answers for "how to change font size according to screen resolution in html"

0

change font size according to screen css

There are several ways to achieve this.

*CSS supports dimensions that are relative to viewport.

3.2vw = 3.2% of width of viewport

3.2vh = 3.2% of height of viewport

3.2vmin = Smaller of 3.2vw or 3.2vh

3.2vmax = Bigger of 3.2vw or 3.2vh

body {
  font-size: 3.2vw;
}

see http://css-tricks.com/viewport-sized-typography/
and also look at http://caniuse.com/viewport-units
Posted by: Guest on January-10-2022
1

how to increaase font size on html

<font size="+2">This is bigger text.</font>
Posted by: Guest on April-29-2020

Code answers related to "how to change font size according to screen resolution in html"

Browse Popular Code Answers by Language