1
HTML/CSSBeginner#css#box-model
% is relative to the parent element's corresponding dimension, so a nested element's percentage depends on its ancestor chain. vw/vh are always relative to the viewport itself (1% of viewport width/height), independent of parent sizing, useful for full-bleed elements regardless of nesting.
.full-bleed { width: 100vw; margin-left: calc(-50vw + 50%); } /* breaks out of a centered container */
.half { width: 50%; } /* depends on parent width */