I want to use an svg image as background-image, I want to show the entire image (no crop) and stretch the image to 100% height and width of the container div without
.sample { height:500px; width:500px; background-image: url('sample.svg'); background-size:cover; background-position:center center; }
Just try it. I hope this will help you