Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 10, 2020 11:47 pm GMT

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:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks