I'm trying to horizontally center an element that is a child of the router-outlet, but it's not working. I think a parent of a centered element needs to have a physical width so the child has something to center to. But since the router-outlet is a pseudo element (I think that's what you call it), I'm not able to apply a width. I can apply a border to it for some reason, but no width... So how am I supposed to center within an element with no width? I MUST be missing something obvious here. I can't imagine an issue so obvious would be present in Angular.
Styling Angular 2 Psuedo Elements (directive elements?)
63 Views Asked by BBaysinger At
3
There are no childs of
router-outlet
. Components added by the router are added as siblings. You might use something like