4 ms·
body { font-size: 2vh; } please, PLEASE dont do this. this completely fucks peoples ability to change the size using Ctrl+mousewheel
by 38 3y ago
body {
font-size: 2vh;
}
please, PLEASE dont do this. this completely fucks peoples ability to change the size using Ctrl+mousewheel
- the-printer 3y agoThat has to be a mistake.
- julianlam 3y agoText is absolutely minuscule on my television. Had to end up using Reader mode to even read the blog post. But that's ok, he doesn't care about what we think ;)
- zzo38computer 3y agoI agree. Don't use font sizes relative to the viewport size. Furthermore, it is unlikely that anything should ever be relative to the vertical viewport size (except in paged media, perhaps). Font sizes should not be relative to the horizontal or vertical viewport size. However, maybe there is exception if you want to set a maximum font size based on a percentage of the width so that all of the letters will fit. But, in my opinion it would usually be better to just avoid setting them by CSS anyways so that it uses the user settings or default settings instead, which should hopefully be set up for the specific display and user. (I often just disable CSS because of the mess they have made.)