Check out example codes for "css floaat". It will help you in understanding the concepts better.

Code Example 1

.myelement {
	float: left;

Code Example 2

This is the code 

.float-wrapper::after {
  content: "";
  clear: both;
  display: block;

.float-wrapper -> is some parent element that wraps the floating items

<div class='float-wrapper'>
     <div class='floating-item'> </div>
     <div class='floating-item'> </div> 

::after  adds  an element after the .float-wrapper, that 
has no content and clears floats from the both sides, making sure, 
other sections are not affected by floats

Learn ReactJs, React Native from