Wat happens when I float 2 elements to the left with and give the 2nd element a margin-right: 10 ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Wat happens when I float 2 elements to the left with and give the 2nd element a margin-right: 10 ?

7th Nov 2017, 2:11 PM
ogagaoghene emmanuel
ogagaoghene emmanuel - avatar
2 Answers
+ 2
Whenever you are not sure, just use code playground to write and test some sample code. Like what I did it for you here just to clear your doubt. https://code.sololearn.com/W0j7bMXS0SF3/?ref=app
7th Nov 2017, 2:21 PM
Calviղ
Calviղ - avatar
0
Calvin, I saw on your css code that you wrote two.classes .div and .div2...what for? you are not using .div2 in the html.
5th Jan 2018, 12:27 AM
Oscar Esparza
Oscar Esparza - avatar