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

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

На главную

don't sleep on using CSS counters for counting your content 👨‍🍳 section::before { content: counters(section,'',pad)'.'counters(content,'',pad) } /* 01.04 */ @​counter-style pad { system: extends decimal; pad: 2 '0'; } check it! 👇

95,627 просмотров • 1 год назад •via X (Twitter)

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

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈1 год назад

this is kinda hard to get a video of so might be worth a little breakdown demo 🤔 but using CSS to count your content means you don't have to bake numbered headings into your content swap the content order? no issue pad the numbers? no problem, use a counter style 🤙

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈1 год назад

had some questions about this one so made a breakdown demo 🤙 should help explain things 🧑‍🍳

Фото профиля Better Bedder
Better Bedder1 год назад

As seen on Shark Tank: Never lift your heavy mattress to change sheets. Use this headband that wraps around your bed.

Фото профиля Cory Simmons
Cory Simmons1 год назад

I always suspected you could do some crazy ish with counters but never really dug into it.

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈1 год назад

gonna spin up a clearer demo because I realise this is quite hard to follow 😅

Фото профиля artTILT
artTILT1 год назад

Clean.

Фото профиля CG
CG1 год назад

this slaps. when everyone is going very like rounded i like the sharp edges and the 1 in the corner. looks dope

Фото профиля 🇫🇷Guillaume Tell - Fullstack dev🇫🇷 τ/acc
🇫🇷Guillaume Tell - Fullstack dev🇫🇷 τ/acc1 год назад

I understand nothing 🤣 wtf is that css property 😱

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈1 год назад

jus' built a new demo to help explain it 🙏

Фото профиля oluwasefunmi
oluwasefunmi1 год назад

This is so crazy that I have literally never seen this feature before And it's baseline!

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