Loading video...

Video Failed to Load

Go Home

really simple trick to write better html

245,178 views • 2 years ago •via X (Twitter)

10 Comments

sh1vero's profile picture
sh1vero2 years ago

Keep in mind that using all:unset often removes all accessibility styling like focus rings. Might be better to use all:revert actually

Hank Taylor's profile picture
Hank Taylor2 years ago

But how do I center a div soup?

tomzaragoza's profile picture
tomzaragoza2 years ago

Completely off topic but what did you use to record that, captions and all

Sultan's profile picture
Sultan2 years ago

Another reason to love tailwind

sam's profile picture
sam2 years ago

Wish I found this a few weeks ago, when bootstrap was really messing with me 😂. Will use it in my current projects and future projects, “all: unset”

Gabor Juhasz's profile picture
Gabor Juhasz2 years ago

Just used this to turn a button into a text button. Worked great until I realized it unsets everything, even the globally applied box-sizing: border-box. So be careful

Aladdin's profile picture
Aladdin2 years ago

Great video

Jake Gonzales's profile picture
Jake Gonzales2 years ago

Be careful doing this because you may inherit parent styles instead. Unset acts as either inherit OR initial depending if the parent has that property set. all: initial; is more transparent. Even then you're now bypassing all of your resets/normalise CSS?

Saket Verma's profile picture
Saket Verma2 years ago

Sounds great i'll give it a try.

Lani ၊||၊ DeSpeed ၊||၊'s profile picture
Lani ၊||၊ DeSpeed ၊||၊2 years ago

Bless you man 🙏🏼

Related Videos