# Full Bleed Layout

> Keeps article text in a readable column while letting chosen elements break out to full width.

- Category: [CSS Layouts](https://copy-css.com/category/layouts)
- Tags: full bleed, article, grid, content width, breakout
- Live preview: https://copy-css.com/snippets/full-bleed-layout
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<article class="flow">
  <p>Readable text column.</p>
  <div class="full-bleed">Full-width banner</div>
  <p>Back to the column.</p>
</article>
```

## CSS

```css
.flow {
  --content: 65ch;
  display: grid;
  grid-template-columns:
    [full-start] minmax(16px, 1fr)
    [content-start] min(var(--content), 100% - 32px) [content-end]
    minmax(16px, 1fr) [full-end];
}

.flow > * {
  grid-column: content;
}

.flow > .full-bleed {
  grid-column: full;
}
```

## Notes

- This CSS Full Bleed Layout is 16 lines of pure CSS (0.3 KB) with no JavaScript and no dependencies. It uses CSS Grid and custom properties.
- Customize with: `--content`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
