@tunabearfishSubmitted about 1 year ago
I had trouble with using CSS, when to use px, vh, or %
I had trouble with using CSS, when to use px, vh, or %
Use px for fixed-size elements and precise control. Use % for relative sizing within parent containers in responsive layouts. Use vh and vw for elements that should scale with the viewport size in responsive designs.