V
V
VladiGG2021-03-19 14:31:54
css
VladiGG, 2021-03-19 14:31:54

How to make a table with a horizontal scrollbar under the header?

Let's pretend we have a table. Between the header and the body there is a scrollbar, by dragging which we scroll both the header and the body of the table, which go into overflow horizontally, since they are longer in size than the parent component. I've been struggling with this issue for a long time, can anyone help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2021-03-19
@frankieksai

And some simple CSS like

-webkit-overflow-scrolling: touch;
    overflow: auto;
    overflow-y: hidden;
    max-width: 100%;

Won't fit?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question