What exactly does "float: left" do in the css part of this code? Because if I remove it, it will still give exact output. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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
2 ответов
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