Better way to make equal sized columns using flexbox?

toshitasingh

Toshita Singh 💜

Posted on May 7, 2022

Better way to make equal sized columns using flexbox?

Is there a better way than the following to make equal sized columns no matter the content size using flexbox?

ul {
  display: flex;
}

li {
  flex-basis: 30%;
  flex-grow: 1;
}
Enter fullscreen mode Exit fullscreen mode

Image description

Challenge link (Layout two): https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox_skills

💖 💪 🙅 🚩
toshitasingh
Toshita Singh 💜

Posted on May 7, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related