Overlap without obfuscation
All over the site, content blocks deliberately overlap: an accent-colored panel tucked over the edge of a photo, a callout nudged into its neighbor. That overlap isn’t just decoration. It tells you the two pieces belong together, instead of just floating near each other on the page.
Under the hood it’s flexbox plus negative margins. The part that matters most: a negative margin only works if the block being overlapped has padding to make room for it. That reserved space is what lets the pieces overlap without ever covering up each other’s content. On narrower screens, an @media (orientation) query flips the flex direction to a column, and the margins and padding switch axes with it, so the pieces stack vertically and still overlap by the same amount. Separate desktop and mobile source images keep the homepage banner looking sharp at every width.
- Responsive Web Design
- CSS
- Sass