Aside divs, how does flex-grow and flex-shrink affect other contents in a flex container?

From the flex-box lessons so far, lesson, we have been working with div contents inside div containers and observing the behaviors of the various div contents inside their div containers.

What will be the behavior of other elements within a flex container or how does the flex container affect other elements within it, for example, paragraphs texts, images, headers and links, etc.

Hi,

Div is a kind of generic classifier that html uses. The effects that you observe happening to divs will happen to other elements generally the same (if I understand your question).

I may sound like a broken record on these forums but I really like Kevin Powell’s css channel on youtube. He has a clear way of showing the beautiful aspects of css.

1 Like