A common design pattern is a fullwidth section where the background stretches edge to edge, but the content aligns to one side of the page container — not the full screen width. This is tricky because standard padding removes the edge-to-edge effect.
Create a fullwidth 2-column section. Set all padding and margins to 0. Then apply a custom left padding to the left column using calc():
padding-left: calc(50% - 640px);50% is half the screen width. 640px is half your max container width (e.g. 1280px container). The difference is exactly the space between the screen edge and the container edge — so the content aligns perfectly with your container on any screen size.
Adjust 640px to match half of your site max-width:
/* Container 1200px wide */
padding-left: calc(50% - 600px);
/* Container 1400px wide */
padding-left: calc(50% - 700px);calc(50% - 640px)max(1rem, calc(50% - 640px)) to prevent negative padding on very small screens.