2 ms·
I don't agree with his "Do not the vw/vh". I find vw very useful for a scaling pixel-perfect mobile portrait view that looks identical whether your mobile is 3
by dwd 1y ago
I don't agree with his "Do not the vw/vh".
I find vw very useful for a scaling pixel-perfect mobile portrait view that looks identical whether your mobile is 320px or 440px viewport width.
- rebane2001 1y agonot my pronoun, and not what the section talks about if you're going to disagree with something, please at least read it first
- alt187 1y agoI agree, vw has been very useful in making sites work the same on mobile and desktop. Even vh, sometimes.
- dwd 1y agoDefinitely sometimes. I generally avoid vh, and rely more on calc and vw to calculate any height that needs cropping, padding or scaling. For example dynamically equalising the height of boxes with unequal content - used to be something you did need JavaScript for. Another is setting widths, heights and gaps using a css grid to create responsive mosaic image layouts.