正在加载视频...

视频加载失败

really simple trick to write better html

245,235 次观看 • 3 年前 •via X (Twitter)

10 条评论

sh1vero 的头像
sh1vero3 年前

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 Taylor3 年前

But how do I center a div soup?

tomzaragoza 的头像
tomzaragoza3 年前

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

Sultan 的头像
Sultan3 年前

Another reason to love tailwind

sam 的头像
sam3 年前

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 Juhasz3 年前

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

Great video

Jake Gonzales 的头像
Jake Gonzales3 年前

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 Verma3 年前

Sounds great i'll give it a try.

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

Bless you man 🙏🏼

相关视频