Table width 100% is off by a single pixel (depending on actual width)
问题 I have a table in a div inside another div . The direct container has a width of 40% , and I want the table to be as wide as this div, by setting width: 100% . Relevant Markup This works most of the time, however depending on the width of the browser window, the width of the table is sometimes off by a single pixel: As you can see to the right, the border is a pixel to the left of that of the sibling div .info . These borders should align. Relevant CSS #userListContainer{width: 40%; float: