Quick Accordion with HTML - No JavaScript required!

Quick Accordion with HTML - No JavaScript required!

Florin Pop

5 месяцев назад

2,105 Просмотров

Ссылки и html тэги не поддерживаются


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

@techsolutionswithtom
@techsolutionswithtom - 05.06.2024 11:18

we couldn't get the code

Ответить
@TheNewton
@TheNewton - 21.05.2024 00:08

The problem I run into trying to make details & summary act as accordions is working out a method to keep the replacement-marker vertically centered in the summary as the summary grows in height if it's text starts wrapping on small screens.

Ответить
@Pici3k
@Pici3k - 25.01.2024 02:43

I use this (summary+details, without styling) on GitHub all the time when pasting longer logs into the PR/issue. It is easily searchable and does not bloat the comment unnecessarily.

Ответить
@TheMisiekMisiek
@TheMisiekMisiek - 23.01.2024 20:51

Great. Really impresive, I've never seen such solution.

Ответить
@ahmad-murery
@ahmad-murery - 23.01.2024 19:07

I used the same method in my recent project to display the notifications details on the dashboard where the summary is type and the count of warning while the content is a table with some action buttons.
Thanks Florin!

Ответить
@issansabimana5122
@issansabimana5122 - 23.01.2024 18:03

That’s great

Ответить