This code is functioning correctly.
<style>
h1{ font-size:8.5vw;}
</style>
<h1>Heading</h1>
However, this code is not working as expected.
<style>
h1{ font-size:8.5px;}
</style>
<h1>Heading</h1>
Inquiry: I am aiming to adjust the font size based on screen resolution similar to this example: http://css-tricks.com/examples/ViewportTypography/ -> (try minimizing screen resolution using mouse). When I specify font size in vw
like font-size:7.5vw;
it works properly. However, when I use pixel values such as font-size:40px;
, it does not work as intended.