Loading video...

Video Failed to Load

Go Home

really simple trick to write better html

245,235 views • 3 years ago •via X (Twitter)

10 Comments

sh1vero's profile picture
sh1vero3 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 Taylor3 years ago

But how do I center a div soup?

tomzaragoza's profile picture
tomzaragoza3 years ago

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

Sultan's profile picture
Sultan3 years ago

Another reason to love tailwind

sam's profile picture
sam3 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 Juhasz3 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
Aladdin3 years ago

Great video

Jake Gonzales's profile picture
Jake Gonzales3 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 Verma3 years ago

Sounds great i'll give it a try.

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

Bless you man 🙏🏼

Related Videos