Table overflow on rows #1790
-
Does anyone have an example on how to set overflow on table rows? As shown in the image below, the table in panel 2 is overlapping panel 3. The table should be contained within panel 2. I created an example on codepen. Help is much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Take a look at the modifications I made: https://codepen.io/estevanmaito/pen/GRpwmWx?editors=1000 Please, take a moment to consider why I did what I did and ask me if you have doubts. A few key points:
|
Beta Was this translation helpful? Give feedback.
Take a look at the modifications I made: https://codepen.io/estevanmaito/pen/GRpwmWx?editors=1000
Please, take a moment to consider why I did what I did and ask me if you have doubts.
A few key points:
h-full
will take the same total height as the parent element. You addmt-2
, so it bleeds.flex-col
to make items stack, and placed the table container inside another div withrelative
. Now flex will take care of it's 2 children and make them fit.