I am using Magento 2.1 and am trying with Modernizr to get my header image fill the full screen on all screens and devices.

I have followed the instructions from the link:
Magento2: use Modernizr in my custom theme

I don't get it working, and since there was no official solution given in the instructions I followed in the link am I hoping someone could help out.


I have managed to set a full height to my header image on all screen resolutions by simply using CSS

height     : -webkit-fill-available;  
object-fit : fill;  
width      : 100%;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.