Kevin Powell

QUIZ TIME! This will be easier for the old-school devs out there: Which CSS property do we use to ensure that an element will go under, rather than next to, a floated element?

2 weeks ago | [YT] | 171



@codyrap95

When you said old-school I instantly knew it's something about the clearfix 😅

2 weeks ago | 15

@nekomew

It has been like years since I last saw clear: both;

2 weeks ago | 11

@prometheusvmorphs5183

I started learning css 8 months ago with flex and grid :D

1 day ago | 0

@markshall94

.clearfix, bringing back memories of web development I don’t want to relive!

2 weeks ago | 14

@adamstuartclark

Ah, floats. Those were the days. Still wake up screaming. Ha!

2 weeks ago | 1

@MistSoalar

I got confused by the word "under” if it meant layer order or not

2 weeks ago | 0

@phucnguyen0110

Yep, guessed right through elimination process.

2 weeks ago | 1

@bmehder

I remember HTML in all caps and the <center>, <blink> and <marquee> elements. I still got the answer wrong. I did not read it thoroughly and chose float.

2 weeks ago | 0

@justindouglas3659

So what is the correct way or recommended way of doing this type of thing?

2 weeks ago | 0

@DustinWillis18

Woot, got this one right. Thanks for the boost of confidence before the weekend.

2 weeks ago | 3

@AndrewTeece

I really miss the days of creating layouts with tables 😂

2 weeks ago | 0

@lidiacodes

I used floats recently? I was building a blog ui and I used it to place images inside the text :) Very handy!

2 weeks ago | 0

@Yologoloman

I still use it at my job! Yay!

2 weeks ago | 1

@watchandlol

I misunderstood “goes under”! I thought you meant under as overlay rather than under as in wrap under :(

2 weeks ago | 0

@swifthand_

👴 "Clearfix... Now that's a name I've not heard... in a long time. A long time.

2 weeks ago | 0

@AvigdorKatz

Wow, I totally forgot about that trick )

2 weeks ago | 0

@jensgur

Never heard of or used it lel

2 weeks ago | 0

@daninumbers

Trying to make responsive sites with float... 🥲 I remember when my coworker brought up that we could try to use flex but it still wouldn't work everywhere. And discovering media queries as if it was magic. Still everytime I look at what's going on with css new things appeared and back to studying. That can be nice when it makes things easier or you can do more things but at the same time it's neverending studying @_

2 weeks ago | 1