If your macaroons spread and turned out flat during baking, you may not have whipped the egg whites enough, or you may have mixed them with the coconut mixture too vigorously. You want to make sure you whip the egg whites to medium peaks and that you very gently combine them with the coconut mixture to keep as much air as possible.