Why height 100% doest work?

I have created a new project and try to put image in div with background-image: url (image), background-size: cover
and main div have width:100% and height: 100%.
And it doest work. Why ?
To make this work I have to put the .scroll class with height:100% it’s correct? it’s right way to do this?