I'm currently facing a challenge in horizontally centering an element that is nested within the router-outlet. Despite my efforts, the centering is not working as expected. I believe that for an element to be centered, its parent must have a specified width so the child knows what to center against. However, since the router-outlet acts as a pseudo element, I am unable to set a physical width on it. It's strange that I can add a border to it but not a width. How do you go about centering an element within a container that has no defined width? There must be a simple solution that I am overlooking. Surely Angular wouldn't overlook such a common issue.