Check out example codes for "à quoi sert clearfix". It will help you in understanding the concepts better.

Code Example 1

#conteneur {
  zoom: 1; /* "hasLayout", empêche le dépassement
              des flottants dans IE 6-7 */
}
#conteneur:after {
  content: "";
  display: table;
  clear: both;
}

Learn ReactJs, React Native from akashmittal.com