I create a parent element with the number of div children elements, which then calculate the width in JavaScript, depending on the data-value attribute.
If I summarize the estimated width for all children, I end up being 100%. But for some reason, the children would not really occupy 100% of the parental width: a part of the white pixels appears immediately after the last child.
This is a script that demonstrates this: http://jsfiddle.net/tqVUy/42/
Chrome and Firefox do this fine, I run into this problem in Safari and Opera (see image below).

In addition, the overflow property does not work properly, as the child elements overlap the parent div (again, relevant only in Safari and Opera).
Questions:
- Is there any other (correct) way to make children suitable for parents?
- Rounded corners and
overflow: hidden for the parent, can I make it the same in all browsers?
0x2D9A3
source share