+ 1

Why this <div> is in same line as <p> tag (i tought that p and div are block lvl elements ) please help me fix my code

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

20th Feb 2018, 11:41 PM
Ilija Pavlovic
Ilija Pavlovic - avatar
2 Answers
+ 3
They are both block level elements. You have float: left on your divs
20th Feb 2018, 11:52 PM
Toni Isotalo
Toni Isotalo - avatar
0
thx for quick response... i can sleep now xD
21st Feb 2018, 1:07 AM
Ilija Pavlovic
Ilija Pavlovic - avatar