<h1> and responsive resizing not working

<h1> and responsive resizing not working
0

#1

Everything seems responsive in my tribute pen, except the font sizes.

In the example tribute pen, the font sizes do change. I can’t see why that one works and mine does not.

Any clues?


#2

You’ve set the font size as 80px. Via JS for some reason.

document.getElementsByTagName("h1")[0].style.fontSize = "80px";


#3

LOL, my bad. Forgot it put that as the default.

Thanks.


#4

@DanCouper

You beat me to it. I agree the font size is set to stay at fixed size of 80px.

@vakio
You can switch to using EMs or viewport size.