Align All Items Horizontally using justify-items
Sometimes you want all the items in your CSS Grid to share the same alignment. You can use the previously learned properties and align them individually, or you can align them all at once horizontally by using justify-items
on your grid container. This property can accept all the same values you learned about in the previous two challenges, the difference being that it will move all the items in our grid to the desired alignment.
Use this property to center all our items horizontally.
Tests
- Waiting: 1.
container
class should have ajustify-items
property that has the value ofcenter
.
/** * Your test output will go here */