Home >Web Front-end >HTML Tutorial >How to separate DIV from DIV_html/css_WEB-ITnose
There are two child DIVs in the parent DIV0, namely DIV1 and DIV2
Now I want to realize a few points
1. DIV1 and DIV2 cannot break through DIVO DIV1 contains the content of the article. Sometimes it’s longer, sometimes it’s shorter
2.DIV1 and IDV2 cannot overlap, keep a certain distance
Newbie, please give me some guidance
Normal nesting, use relative positioning of child divs, if necessary, add float: left
Normal nesting, use relative positioning of child divs, if necessary, add float :left uses margin to create distance. If the number of internal text words is variable and all of them need to be displayed, do not define height.