html - how do I get a table width to stay with in its container? -
how table width stay within container?
.outersection:nth-child(4) .innersection:nth-child(1) .sectiondata:nth-child(1) table{ margin:15px 15px 20px 15px; width:100%; max-width:100%; }
the table not overflow container unless:
1. table has position:absolute; 2. table has width greater 100% 3. table has greater pixel width container 4. table uses margin-left or margin-right 5. table has padding, width: auto
those simple ways table overflow table. if overflowing anyhow, , 1 of above 3 conditions not met, please post container , table css.
a possible solution fix yous setting width auto, or setting width 100% , making 0px margin.
Comments
Post a Comment