CSS mapping: table with fractional pixel width

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.

wtf

+4
source share
2

display:table .

, .

9 FEB 2016: Google Chrome div display:table , Firefox - , IE .

+1

, display: table , , .

0

Source: https://habr.com/ru/post/1627896/


All Articles