Home > Web Front-end > HTML Tutorial > css parent div height is 0_html/css_WEB-ITnose

css parent div height is 0_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:13
Original
1300 people have browsed it

When the height of the parent class div in CSS is , it may be that the child class div element uses float and does not add the clear attribute.

.clear {

  1. clear: both;
  2. font-size: 0;
  3. line-height: 0;
  4. height: 0;
  5. visibility: visible;

}


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