Home > Back-end >  Nested table overflowing outer parent table and also the scroll bar for the nested table is showing
Nested table overflowing outer parent table and also the scroll bar for the nested table is showing

Time:08-08

I've added a simpler example in jsfiddle for the code I've got at the moment Table example

Inner table expands beyond outer table

EDIT 3 After following Byle's answer and Eye-Wonder's comment (within his answer) I'm left with 2 scroll bars. One barely moves the table whereas the other moves it entirely.

Remove this scroll bar

CodePudding user response:

One of the tables is set to 200% width. They will align more if you change to 100%. Also try a HTML validator. That will tell you if your HTML is valid or not. tr > div > table does not look right.

CodePudding user response:

The issue is youre wrapping the nested table in a div instead of a td which when you look in the chrome debugger the browsers autocorrects to the nested table not being nested anymore but below it like this:

html structure

  • Related