@Toluwaa-o
Posted
Well done on completing the challenge.
Concerning centering divs, you can use a few different methods. The first one is to set the margins to auto, the second method requires setting the display property to 'grid' and then setting 'place-content' to 'center'. The third method requires setting the display property to 'flex' and then setting the 'justify-content' and 'align-items' property to center. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container
Concerning your other question, querySelectorAll returns a nodeList. So you can either use a for loop or you can use the index (first one is 0) to select individual items in it. You can find more information here: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll
Marked as helpful