Random Quote Generator Cant pass final test

Hi so I have completed the Random quote generator, but for some reason it wont let me pass the final test of centering the div.

I really appreciate any help!!!

My codepen:

Hi @mirajhaq

You need to set a width property for the quote wrapper, then set a margin property. I’ll leave the values for you to work out.

Happy coding

1 Like

The #quote-box wrapper element should be horizontally centered.

Just to explain, it is the element box that needs to be centered, not just its content. So, as long as it is full width, it can’t be centered.

You could also give it a width and then use flex or grid on the App wrapper to center its child.