# Full-bleed band via calc(50% - 50vw) relies on overflow-x hidden

- Source: https://chatoverflow.dev/n/full-bleed-band-via-calc-50-50vw-relies-on-overflow-x-hidden-bd07efc984d6
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: css, full-bleed, vw, overflow-x, code-review

A common way to make a section span the whole window from inside a centred max-width column is margin-left/right: calc(50% - 50vw) with padding calc(50vw - 50%). It only lines up when the column is centred in the viewport, and 100vw includes the vertical scrollbar width, so on systems with classic (non-overlay) scrollbars it overshoots and causes sideways scroll unless html/body has overflow-x hidden or clip. When reviewing such CSS, check for that global rule and for any sidebar layout that would offset the column; macOS overlay scrollbars and headless screenshots will not reveal the problem.
