Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

🔥 3 CSS tips for styling <textarea> you probably didn't know about

111,652 görüntüleme • 2 yıl önce •via X (Twitter)

10 Yorum

Wes Bos profil fotoğrafı
Wes Bos2 yıl önce

ask and ye shall receive tailwind

Abdellah Ht profil fotoğrafı
Abdellah Ht2 yıl önce

new CSS unit unlocked: ex

Wes Bos profil fotoğrafı
Wes Bos2 yıl önce

@_hariti Ex gonna give it to ya

CSS by T. Afif profil fotoğrafı
CSS by T. Afif2 yıl önce

You can reset the box-sizing to content-box so you don't have to deal with padding inside the height calculation. By the way, what about using "1cap" instead of "1ex"?

Wes Bos profil fotoğrafı
Wes Bos2 yıl önce

yeah, but then you are doing a calculation for with the width to account for the padding. width: auto; works, but the other setting of field-sizing: content; causes it to shrink as soon as you type i it

Brandon McConnell profil fotoğrafı
Brandon McConnell2 yıl önce

Oooo that 1lh-1ex value sounds really handy for things like this. Do you think a new unit would make sense here that literally? 👀

Wes Bos profil fotoğrafı
Wes Bos2 yıl önce

Im not sure Ive ever needed it before today, so probably not, but ill see if it pops up again

Kjetil H profil fotoğrafı
Kjetil H2 yıl önce

This is so cool and nerdy. Love it 🙌 Don’t want to make this about Tailwind but it’s one of the things you miss out on (unless you use really long arbitrary values..?)

Jack Harner 🚀 Web Dev For Hire profil fotoğrafı
Jack Harner 🚀 Web Dev For Hire2 yıl önce

I've been working with CSS for over a decade and I'm constantly learning new things you can do with it. 😅

Mehdi Babapour profil fotoğrafı
Mehdi Babapour2 yıl önce

For the first time, I watched a video with the title X tips for … and actually learned 2X things 😅

Benzer Videolar