Answers for "two divs next to each other flex"

CSS
1

multiple divs next to each other

.container {
  display: flex;
}

.item {
  background: #ce8888;
  flex-basis: 100px;
  height: 100px;
  margin: 5px;
}
Posted by: Guest on September-17-2021
0

how to put two items befside each other using flexbox

.flex-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 5px;
}

.column-item:nth-of-type(-n + 3) {
  grid-column: span 2;
}

.column-item {
  background-color: lightgreen;
}
Posted by: Guest on December-16-2019
0

how to put two items befside each other using flexbox

<div class="flex-column">
  <div class="column-item">a</div>
  <div class="column-item">b</div>
  <div class="column-item">c</div>
  <div class="column-item">d</div>
  <div class="column-item">e</div>
</div>
Posted by: Guest on December-16-2019

Code answers related to "two divs next to each other flex"

Browse Popular Code Answers by Language