Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Ahmed El-Kordy
Ahmed El-Kordy
3,565 Points

based on resources in teacher notes we should use display block instead of display table, correct?

Hello,

So based on The clearfix "hack" article we should of used display block instead of display table unless we using before pseudo class, or that is out-dated article i see the article date go back to 2011

2 Answers

You might find this interesting from Jul 3, 2018: Clearfix: A Lesson in Web Development Evolution . In the article you can probably skip down to 2010: Clearfix Reloaded

Ahmed El-Kordy
Ahmed El-Kordy
3,565 Points

Oh thank you, i think i needed to do more research before i post something stupid :) sorry and

thank you again for your help/time