Answers for "use flex instead of gap"

CSS
1

gap css flex

/* elements in a row */
	.row-flex-container {
      display: flex;
      flex-direction: row;
      column-gap: 2rem;
    }

	/* elements in a column */
    .column-flex-container {
      display: flex;
      flex-direction: column;
      row-gap: 2rem;
    }
Posted by: Guest on April-21-2022

Browse Popular Code Answers by Language