I use percentages to create a width a div
with the property display
set to table
. In my case, the width of the parent div
is 88.7969px. Therefore, it is reasonable that setting the width
child div
with the property display
set to table
up to 100% will calculate the width of 88.7969px. This, however, is not the case. It calculates the width as 88px.
Is the fractional pixel width displayed table
?
Here's the fiddle . If you check the elements, you will see a wrapper content
at 88.7969px, but the inner child div
at 88px.

source
share