Why isn't the CSS background covering the entire viewport width when using media query @media (max-width: 62.5em)
?
https://i.sstatic.net/yvGWd.png
I've attempted to use background-size: cover
, background-position: top left
, and background-repeat: no-repeat
, but nothing seems to be working.
Below are the main CSS styles for that section:
max-width: 100vw;
min-height: 100vh;
background: url(../images/bg-hero-desktop.svg);
background-color: #ebfbff;
background-size: cover;
background-repeat: no-repeat;
padding-top: 20rem;
padding-left: 5rem;