I am looking to place an image, intended as a background, at the bottom of a container while maintaining its current height and stretching it to the width of the container.
Currently, my CSS looks like this:
background:url('images/poll-graph.svg') no-repeat center bottom;
And my HTML structure is as follows:
<section id="sec-feature-polling">
<div class="container">
<h2>This is a heading</h2>
<p class="subheading">This is a subheading</p>
</div>
</section>
Adding background-size: 100%
caused the image to scale proportionally, increasing its height. I am using Bootstrap 4.0.0.
If anyone has suggestions on how to achieve this effect without distorting the image, I would greatly appreciate it :-)