grapesjs
grapesjs copied to clipboard
QUESTION: Float Left/right removes the component from the container
I have observed that whenever I align a component left or right (float left or float right), that component comes out of the parent container, however If I make it to 'None' it comes back inside the container in it's last position. I found this on live demo too.
Refer the attached screenshots


Could you please let me know why it happens like this?
Thanks for your help.
The float property collapses the parent div. You can use this for reference.
Yeah, unfortunately, that is how weird the float works, so if you're creating a builder for non-tech people avoid that property 😬