My root div has a width of 100% and I need to ensure that all children do not overlap (overflow:hidden
) or exceed the 100% width.
While this works well with inner <div>
s, using <table>
s often causes the table to extend beyond the parent 100% div
.
Is there a way to fix this issue while still utilizing the table
?
Check out the solution on this JSFiddle.
See the screenshot for reference:
https://i.stack.imgur.com/0DjXQ.png