# Split Screen

> Two equal halves side by side that stack vertically on narrow screens.

- Category: [CSS Layouts](https://copy-css.com/category/layouts)
- Tags: split, two column, hero, login, flex
- Live preview: https://copy-css.com/snippets/split-screen
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<section class="split">
  <div>Left</div>
  <div>Right</div>
</section>
```

## CSS

```css
.split {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

/* Each half is at least 320px; below that they stack */
.split > * {
  flex: 1 1 320px;
}
```

## Notes

- This CSS Split Screen is 10 lines of pure CSS (0.2 KB) with no JavaScript and no dependencies. It uses Flexbox.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
