DEV Community

Discussion on: Why 100vw causes horizontal scrollbar

Collapse
 
tepythai profile image
Tepy Thai

Yeah, I would want to avoid the 100vw within a 100% container as well. Mostly I only use 100% for inner elements unless I really want the width to be relative to the viewport, then I would use 100vh. Anyway, thanks for the clarification :)