If you want to build a cuboid, check out this article . It provides a logical method for it that's not just throwing 3D transforms at an element until things seem to look right and it explains the how behind this method in a lot of detail, as well as what common cube-building patterns (such as translating by a negative amount to get the back face) to avoid and why.