Video yükleniyor...
Video Yüklenemedi
really simple trick to write better html
245,178 görüntüleme • 2 yıl önce •via X (Twitter)
10 Yorum

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

But how do I center a div soup?

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

Another reason to love tailwind

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”

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

Great video

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?

Sounds great i'll give it a try.

Bless you man 🙏🏼
