
Xavier P. answered 04/04/19
Creatively Open-minded tutor in Programming, Math and The Arts
Yeah, if the height is higher in dimension than the width, by default the element will try to keep it contained so it doesn't crop. That means that it will leave empty space on the sides if there is no repeat on the background image. What you can do is use a css property called backgrond-size where you can manually set the width and height of your background image. Here's an example below
https://jsfiddle.net/2wo7xy50/10/
For the best result, you should use background-size: cover so it covers the entire element. If you need to position it, use the background-position property. If you need a specific width and height for background, use background-size: width height; (replace width with a size and height with a size ex: 100% 50%).