css - 2 child containers not sitting alongside each other

Posted by eyeballpaul on Stack Overflow See other posts from Stack Overflow or by eyeballpaul
Published on 2012-09-04T09:58:57Z Indexed on 2012/09/04 15:39 UTC
Read the original article Hit count: 227

Filed under:

I have a parent container, that has child containers within it. 2 child containers take up 60% width and 40% width respectively. They have no margin, and they have padding, but use box-sizing so this is included in the width. But for some reason they don't sit side by side. If I change one of them to 39% width then it looks fine.

What am I doing wrong?

Example can be seen at http://jsfiddle.net/Rcaet/

© Stack Overflow or respective owner

Related posts about css