DEV Community

Discussion on: Never make your text container a flexbox container

Collapse
 
lakbychance profile image
Lakshya Thakur

Thanks for the insights. What should be the case where we have a parent flex container and in inner children one is a div and another is span. Think it like a card and it’s caption. Parent will have flex-direction:column. Is this use-case okay ?

Collapse
 
afif profile image
Temani Afif

yes it's should be ok because you are already describing two boxes (a div and span) and your text will be inside the span. If it's a div + some text then you may face some strange issues until you wrap the text inside its own box

Collapse
 
adithyarafk profile image
AdithyaR-afk

CSS drives me crazy

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
kingrayhan profile image
Info Comment hidden by post author - thread only visible in this permalink
King Rayhan

asdasd

Some comments have been hidden by the post's author - find out more