Just started using the brand new vmin
css property for adjusting font size - and it's working like a charm!
div.sample { font-size: 1.5vmin; text-align: center; ... }
However, a bit of a snag appears when resizing the page. When the page is made smaller, the font-size
remains the same, causing a misalignment.
Firstly, is this something the browser should be handling?
Secondly, what would be the optimal way to address this issue? It seems like setting a trigger to adjust the font-size
might be the way to go, but that would require knowing the font-size values in both javascript
and css
- potentially setting up for failure.