filmov
tv
Creating equal width items inside a flex container ✨

Показать описание
✨ Creating equal width items inside a flex container ✨
Breakdown:
This is achieved using a combination of the following three properties
👉 flex-basis set to 100% makes the elements to try to be as wide as the parent itself
👉 flex-shrink of 1 makes all the elements shrink evenly, making them of equal width
👉 flex-grow set to 0, makes the element not grow even when there is more space available, but is arbitrary in this case
#css #csstricks #coding #programming #webdesign #frontent #html #javascript #cssninja #reactjs #vuejs
Breakdown:
This is achieved using a combination of the following three properties
👉 flex-basis set to 100% makes the elements to try to be as wide as the parent itself
👉 flex-shrink of 1 makes all the elements shrink evenly, making them of equal width
👉 flex-grow set to 0, makes the element not grow even when there is more space available, but is arbitrary in this case
#css #csstricks #coding #programming #webdesign #frontent #html #javascript #cssninja #reactjs #vuejs