I am 100% at a loss as to why I cannot get a background-image
to display. I have tried multiple different images to rule that out. I have also changed src
to url
, changed the background-size
from cover
to auto 100%
. Nothing I do will get the image to display.
Does anyone see why my background image will not display?
#home-img {
background-image: url("http://cosmotekcollege.com/wp-content/uploads/2015/08/ban4.png");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
background-position: 50% 50%;
width: 100%;
height: auto;
position: relative;
}
<div id="home-img">
</div>
Here is jsfiddle