• CSS Float

    CSS Float aligned the element to left or right. For example, lets create a child div and we will use css float to aligned that child div left or right.

    .child {
       width: 100px;
       height: 50px;
       float: right; 
       background: #000;
       color: #FFF;
    }
       <div class="child">
          child class
       </div>
    Output
    child class

    Related Post