- Joined
- Jul 8, 2005
- Messages
- 17,132
- Likes received
- 4,950
- Thanks received
- 1,184
- Location
- xoggoth towers
Wondering if this approach is a good idea for mobiles:
html {
font-size: calc(15px + 0.390625vw);
}
h1 {font-size:1.2rem; font-weight:bold; padding:0px; width:100%; text-align:center;}
h2 {font-size:1.1rem; font-weight:bold; padding:0px; width:100%; text-align:center;}
etc.
https://matthewjamestaylor.com/responsive-font-size
All looks pretty good on Chrome and Edge mobile simulators at various sizes but text rather small on my Pixel 4a. It is a reasonably recent one, got it 2 or 3 years ago and first release was in 2019 and Chrome is up to date. Must be quite a few older phones in use.
html {
font-size: calc(15px + 0.390625vw);
}
h1 {font-size:1.2rem; font-weight:bold; padding:0px; width:100%; text-align:center;}
h2 {font-size:1.1rem; font-weight:bold; padding:0px; width:100%; text-align:center;}
etc.
https://matthewjamestaylor.com/responsive-font-size
All looks pretty good on Chrome and Edge mobile simulators at various sizes but text rather small on my Pixel 4a. It is a reasonably recent one, got it 2 or 3 years ago and first release was in 2019 and Chrome is up to date. Must be quite a few older phones in use.
Last edited:
12:19