Home > Web Front-end > HTML Tutorial > How to separate DIV from DIV_html/css_WEB-ITnose

How to separate DIV from DIV_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:17:56
Original
1759 people have browsed it

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


Reply to the discussion (Solution)

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template