Fixed Position Div Isn’t Staying Fixed When Scrolling on Android
By Forrest Smith - Drempd.com
My nice fixed position toolbar wasn’t sticking as it should as I scrolled through on my mobile browser window. It would appear sticky at times, but as I scrolled, it would slide up or down. The solution is to add “minimum-scale=1” to the meta viewport tag, which for me, now looks like this:
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
-
Adventure
-
The Built Environment
-
Locations
-
Web Dev