Answers for "display flex items side by side"

CSS
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

flex align children to side

flex-direction: column;
align-items: flex-start; //left
align-items: center; //center
align-items: flex-end; //right
Posted by: Guest on August-04-2020
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 "display flex items side by side"

Browse Popular Code Answers by Language