Steven Nguyen• 30
@tunabearfish
Submitted
I had trouble with using CSS, when to use px, vh, or %
@fizasaif123
@tunabearfish
Submitted
I had trouble with using CSS, when to use px, vh, or %
@fizasaif123
Posted
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.