Another afterthought (& you probably know)- screen top is best...ventilation! So yes, I use glass tanks & your 10 gal. is fine for some time with a hatchling.
They like tight hides as dakski already said...you can use a larger hide & stuff w/ paper towel, crumpled or shredded as I described. Corns aren't terribly fussy-
they're easy to live with. But just like other baby snakes, feed first without handling...most take f/t very well. (pinky mice)