0

What exactly does "float: left" do in the css part of this code? Because if I remove it, it will still give exact output.

https://code.sololearn.com/Wiq8hCoiYx36/?ref=app

9th Apr 2020, 10:00 PM
Joy
3 Answers
0
Change it to right ,it basically floats the element left or right,so you don't need it here really, consider this in html: <ul> <li>1</li> <li>2</li> </ul> in css: ul li{ float:left }
9th Apr 2020, 10:43 PM
Abhay
Abhay - avatar
0
its better seen with more content
10th Apr 2020, 3:47 PM
David