CSS Flex Box 2x2 Layout erzeugen?

1 Antwort

HTML:

<div class="container">
  <div class="box-1">Box 1</div>
  <div class="box-2">Box 2</div>
  <div class="box-3">Box 3</div>
  <div class="box-4">Box 4</div>
</div>

CSS:

.container {
  display: flex;
  flex-wrap: wrap;
}

.box-1 {
  background: red;
  width: 80%;
}

.box-2 {
  background: yellow;
  width: 20%;
}

.box-3 {
  background: green;
  width: 20%;
}

.box-4 {
  background: blue;
  width: 80%;
}

elmex7  25.11.2022, 19:00

Warst schneller 👍

0