An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
November 10, 2020 11:47 pm GMT
Original Link: https://css-tricks.com/understanding-flex-grow-flex-shrink-and-flex-basis/
Understanding flex-grow, flex-shrink, and flex-basis
When you apply a CSS property to an element, there’s lots of things going on under the hood. For example, lets say we have some HTML like this:
<div class="parent"<div class="child"Child</div<div class="child"Child</div<div class="child"Child</div</div
And then we write some CSS…
.parent { display: flex;}
These are technically not the only styles were applying when we write that one line of CSS above. In fact, a whole bunch of properties will be applied to … Read article “Understanding flex-grow, flex-shrink, and flex-basis”
The post Understanding flex-grow, flex-shrink, and flex-basis appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
Original Link: https://css-tricks.com/understanding-flex-grow-flex-shrink-and-flex-basis/
Share this article:
Tweet
View Full Article