H
H
Hummerson2018-02-07 08:53:10
css
Hummerson, 2018-02-07 08:53:10

How to make such a table? table or div?

Hello everyone. Can you please tell me how to make this board? Through bootstrap table or divs?
You also need to make sure that the line gets up from the database there
Ooh, even I'm generally confused :c
5a7a9404a89a7803666660.jpeg

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vadim Belkin, 2018-02-07
@BelkinVadim

Due to the design features, it is problematic to do it through the standard table behavior (add shadows and indents between rows, since elements with display: table-row do not provide such an opportunity).
But in this case, if semantics and Web Accessibility are important, I would still use table and accompanying tags, changing their display properties to block and flex where block or horizontal layout is needed (this will add shadows for tr and padding between them).
Naturally, everything can be done the same on a div and even add the role and aria-* attributes if accessibility is again important.
In any case, the choice of solution depends on the implementation requirements (the behavior of rows and columns when the content changes and the size of the table or screen changes, the need to comply with semantics and accessibility, perhaps some other features).
If you have enough time to implement this UI, then I would advise you to try to do it on tables, and if there are difficulties, you can always redo it into blocks.

I
ink, 2018-02-07
@AskMy

Well, of course, it's better to do it with a table, but this way is also possible: codepen

S
sergey, 2018-02-07
@zorro76

You can also play around with data-table

A
Alex, 2018-02-07
@astrodeep

flexbox))

J
Justique, 2018-02-07
@Justique

As mentioned above, do not make a bicycle, on flexbox it is done in an hour

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question