I use percentages to create a width a divwith the property displayset to table. In my case, the width of the parent divis 88.7969px. Therefore, it is reasonable that setting the widthchild divwith the property displayset to tableup 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 contentat 88.7969px, but the inner child divat 88px.

source
share