How to float 3 divs on same line using CSS?

The modern and quicker way is to use the CSS flexbox, Three or more different div can be put side-by-side using CSS. Use CSS property to set the height and width of div and use display property to place div in side-by-side format. float left; This property is used for those elements(div) that will float on