Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Difference between width set to 100% vs 100vw vs auto - Kevin Powell - Community
KP-C
Kevin Powell - Community
โข
8mo ago
โข
17 replies
Faker
Difference between width set to 100% vs 100vw vs auto
Hello
, can someone explain what is the difference to width property in css when we use 100
%
, 100vw and auto as values
?
100vw is always relative to viewport width
?
100
% is always relative to parent container
?
What about auto
?
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time ๐.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Apply 100% width after scaling
KP-C
Kevin Powell - Community / help
8mo ago
Difference between `:open` and `[open]`
KP-C
Kevin Powell - Community / help
8mo ago
Grid auto-fill or auto-fit min and max-width?
KP-C
Kevin Powell - Community / help
8mo ago
What's the difference between a static site generator vs a content management system?
KP-C
Kevin Powell - Community / help
6mo ago