I
I
Ilya Derevyannykh2020-04-29 22:23:31
css
Ilya Derevyannykh, 2020-04-29 22:23:31

How to make a collapsible table?

How to make such a table?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
T
twobomb, 2020-04-29
@Ylia_dr

S
scottparker, 2020-04-29
@scottparker

I would try to make a wrapper block for the table, set its height less than the height of the table and overflow: hidden (hide everything that goes beyond the block borders). when clicking on the table, increase the height of the wrapper block to the height of the table

R
Rsa97, 2020-04-29
@Rsa97

Something like this, just hang some more frills - a translucent gradient, smooth folding, etc.

A
Andrey Pike, 2020-04-29
@AndyPike

Ilya, I highly recommend changing the philosophy a little and switching to indents with spaces.
All modern editors understand this.
In JS/CSS it's two, in Python 4, in HTML it's either one or the other.
And here they are set to 8.
Your code is unreadable.

I
Igor, 2020-04-29
@loonny

Press F12 and see how it's done once you have an already working version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question