CSS CSS Layout Basics CSS Layout Project Before You Start the Layout Project

Laly Singh
Laly Singh
2,029 Points

.clearfix not working media query 769px for columns


Trying to understand why the clearfix I put for the media query wider than 769px dont work. I had to use a padding-bottom value to adjust the two columns which is probably not right?

Snapshot here : https://w.trhou.se/siliepmmf5

Thank you!

1 Answer

Abdulrahman AL-Janabi
Abdulrahman AL-Janabi
Front End Web Development Techdegree Student 5,257 Points

Hi Laly,

the clearfix class will be working only when you apply all of its child div elements a floating property. Please check what I did in your workspace especially when I add col class a float property to the left and also remove col class from the parent div element of these columns