[ https://css-tricks.com/the-trick-to-viewport-units-on-mobile/ ]

^ this right here is the kind of stuff that drives me batty and makes me just give up.

the author recommends using a javascript function to update a custom CSS variable to use the actual window size in place of vh units because the latter are broken across browsers / platforms. then adding a listener for resize events. then adding debounce/throttling logic to the resize handler.

what the hecking frack. no wonder we end up piled-up frameworks like Bootstrap.

anyways, thanks for the tips - resources shared above have allowed me to ditch Tailwind and roll my own stuff and have it work better anyway.

3 Likes