How to fix this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to fix this?

I'm trying to understand the float and clear property and tried also the clearfix. But when I tried to code it it didn't worked. Please check the code and comment out my mistake and help me understand it more better. https://code.sololearn.com/W6jWk8OA5yL4/?ref=app

2nd Nov 2018, 10:17 AM
Hamza Humair
Hamza Humair - avatar
2 Answers
+ 1
https://code.sololearn.com/WiFSShjlxK55/?ref=app your float boxes are actually floating (check the 4 5 6 7 position in html and compare with outcome) reason you do not feel is multiple float doesnot over lap each other. use float when only one to float. if intention is overlap, use position : absolute then top/left to adjust positions
2nd Nov 2018, 11:50 AM
Gordon
Gordon - avatar
+ 1
Thank You @Speary
2nd Nov 2018, 12:05 PM
Hamza Humair
Hamza Humair - avatar