July 31, 2018 01:58 pm GMT
Original Link: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
The trick to viewport units on mobile
Viewport units have always been controversial and some of that is because of how mobile browsers have made things more complicated by having their own opinions about how to implement them.
Case in point: should the scrollbar be taken into account for the vw
unit? What about a site's navigation or page controls — should those count in the calculation? Then there are physical attributes of the devices themselves (hello, notch!) that can't be overlooked.
First, a little context…
The post The trick to viewport units on mobile appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
Share this article:
Tweet
View Full Article