+ 4

Is the CSS flexbox can be nested?

14th Jul 2020, 9:50 AM
Unknown Ambusher 🗡️
Unknown Ambusher 🗡️ - avatar
5 Antworten
+ 4
Flexbox only have effect on immediate children, so nested elements can use flexbox to control their children too.
14th Jul 2020, 9:55 AM
Calviղ
Calviղ - avatar
+ 3
Calviղ does that mean I can make one of child element to the parent element to control the element in it?
14th Jul 2020, 10:05 AM
Unknown Ambusher 🗡️
Unknown Ambusher 🗡️ - avatar
+ 1
Yeah
14th Jul 2020, 9:52 AM
hackxsaras
+ 1
Muhamad Luthfi https://code.sololearn.com/WHK05039i28w/?ref=app Here is how to implement that.. CSS would make it clear
14th Jul 2020, 10:19 AM
hackxsaras
+ 1
Muhamad Luthfi child element cannot control its parent element.
14th Jul 2020, 10:47 AM
Calviղ
Calviղ - avatar