Answers for "css flex gap property"

CSS
2

css flex gap between items

/* limited support (Q1/2021: Firefox, Chrome, Safari) */
.flex-container
{
  display: flex;
  gap: 5px;
}

/* broad support */
.flex-item
{
  margin: 5px;
  /* and/or */
  padding: 5px;
}
Posted by: Guest on February-25-2021
4

flexbox gap

gap: 10px 20px; /* ⇳ and ⬄ */

row-gap: 10px; /* ⇳ only */
column-gap: 20px; /* ⬄ only */
Posted by: Guest on June-24-2021

Browse Popular Code Answers by Language