Make the top a little larger than the top of the mattress, and then add borders for the sides and bottom, but with the corners cut out. (So if you were to lay it flat, it would look like a rectangle with the two bottom corners missing) that way the bottom and the sides can hang free and there is a cut out for the posts.