Filling gap and cracks within the closet...? there are almost 2-3 inches gaps within my closet that i...

there are almost 2-3 inches gaps within my closet that i want to close ...i was in actuality going to put my baby's stuff in the room but i saw some gap which i want to close down before i put the baby's stuff within the closet.. just to donate on therez carpet within the closet...so my question is that which spary or product to use to pack in those holes...
appreciation
Answers:    go to home depot and ask someone..
Spackle, combined compound or caulk. Sounds like too big of a post for caulk though.