Загрузка видео...

Не удалось загрузить видео

На главную

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

111,652 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Wes Bos
Wes Bos2 лет назад

ask and ye shall receive tailwind

Фото профиля Abdellah Ht
Abdellah Ht2 лет назад

new CSS unit unlocked: ex

Фото профиля Wes Bos
Wes Bos2 лет назад

@_hariti Ex gonna give it to ya

Фото профиля CSS by T. Afif
CSS by T. Afif2 лет назад

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
Wes Bos2 лет назад

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
Brandon McConnell2 лет назад

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
Wes Bos2 лет назад

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

Фото профиля Kjetil H
Kjetil H2 лет назад

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
Jack Harner 🚀 Web Dev For Hire2 лет назад

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

Фото профиля Mehdi Babapour
Mehdi Babapour2 лет назад

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

Похожие видео