I am struggling to center a child div horizontally within its parent div while also fixing it to the top of the parent. I have tried various approaches in CSS, but so far I haven't been successful :-( I can either center it or fix it to the top, but when I try to do both, the child div remains fixed in its default position (to the left).
EDIT: The child div must remain fixed to the top so that when other children overflow, they can be scrolled while it stays in place.