QuoteGenerator: Why is the background-color property not working?

Here is my codepen, of my question: https://codepen.io/Ag_Yog/pen/rzezYw.

I wrote the following code in an attempt to make the white space a different color:
html, body {
width: 100%;
height: 100%;
background-color: #00e676 ;
}

I am confused on why this doesn’t work, as I specified the dimensions of the body.

Also, the JavaScript portion of my code which generates the new quote doesn’t work on codepen, even though the same code worked on notepad.

Thanks for any help

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

1 Like