When making the finished product of a website for phones and other handheld devices, I notice there is some kind of shaky feelin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When making the finished product of a website for phones and other handheld devices, I notice there is some kind of shaky feelin

This only happens when scrolling down (moving back up to the top), and I notice that the letters, paragraphs and headings are resizing themselves because of the taskbars that appear in browsers when scrolling down. I checked through my work but can't seem to find the problem...what causes this? And how can I fix it?

2nd May 2020, 11:01 AM
Thomas Sankara
Thomas Sankara - avatar
4 Answers
+ 1
You probably set their height relative to the viewport. That's why. Did you use vh unit for any height? Or did you set any element's position to sticky?
2nd May 2020, 11:28 AM
Ore
Ore - avatar
+ 1
That is the issue with vh. If the viewport height changes the element height changes too. You should probably use javascript to resize it if you do not like the default behaviour of vh
2nd May 2020, 2:28 PM
Ore
Ore - avatar
+ 1
Oooh. I didn't know that...thank you, very much 🖐
2nd May 2020, 2:31 PM
Thomas Sankara
Thomas Sankara - avatar
0
I did use vh
2nd May 2020, 2:24 PM
Thomas Sankara
Thomas Sankara - avatar