Using display: flex; on the container will allow both child elements to shrink a bit and fit them in to one line. (and use either class or ID on the container…)
The problem is that you are using class on html and call the id on the css, beside that you are not giving a width to the father myCard. And the names are wrong.
If you correct your typo (“halffWidth”/”halfWidth”), the result is the same as in the question…
Comment posted by Yuyo
No is not, 50% it’s not exact using display:inline-block, you can use float:left, instead but you will need to declarate position:relative and overflow:hidden to the father, and then 50% will work. Check de code snippet and they look equal width and one next to each other. display:flex and flex:2 works great too