正在加载视频...

视频加载失败

really simple trick to write better html

245,178 次观看 • 2 年前 •via X (Twitter)

10 条评论

sh1vero 的头像
sh1vero2 年前

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 的头像
Hank Taylor2 年前

But how do I center a div soup?

tomzaragoza 的头像
tomzaragoza2 年前

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

Sultan 的头像
Sultan2 年前

Another reason to love tailwind

sam 的头像
sam2 年前

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 的头像
Gabor Juhasz2 年前

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 的头像
Aladdin2 年前

Great video

Jake Gonzales 的头像
Jake Gonzales2 年前

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 的头像
Saket Verma2 年前

Sounds great i'll give it a try.

Lani ၊||၊ DeSpeed ၊||၊ 的头像
Lani ၊||၊ DeSpeed ၊||၊2 年前

Bless you man 🙏🏼

相关视频