Center allign

What would I have to do if I wanted to make the Breadcrumb center the page? (in terms of width)
https://www.codecademy.com/workspaces/62adc4a7951f7d5e37f8dfb2

CSS has a style attribute “justify-content”. The problem is that “justify-content” only applies to flex and grid containers. Adding “display: flex;” or “display: grid;” to your .breadcrumb fixes this problem. However, I think you want to use “display: flex;”.

With “display: flex;”:

With “display: grid;”:

Don’t forget to justify the content!

Cheers,
Tiger_The_Cat

1 Like