DEV Community

Discussion on: Never make your text container a flexbox container

Collapse
 
mattheslington profile image
Matt Heslington • Edited

You should never put text directly inside a div tag.

Collapse
 
afif profile image
Temani Afif

there is nothing wrong adding text inside a div if you don't aim to have any particular semantic. Besides that, this post is not focused on semantic, even if I use p the issue will remain the same if we try to apply the flex properties to p

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