I've been struggling to find a solution for making my SVG element act as display: block. I want to display an image right below the SVG, but it keeps overlapping the SVG. I've attempted changing the properties to "display: block" and even creating a div container around the SVG element itself, but nothing seems to be working. I'm sure there's a simple solution out there, I just can't seem to figure it out.
#svg{
position: absolute;
left: 0;
right: 0;
margin: auto;
z-index: -1;
display: block;
margin-bottom: 10px;
display: block;
}
#svgContainer{
display: block;
width: 90%;
margin: auto;
}
#seasonImage{
background-image: url('images/summer.png');
width: 120%;
margin-left: -30px;
height: auto;
background-repeat: no-repeat;
background-size: contain;
height: 200px;
display: block;
position: relative;
}
<div id="svgContainer">
<svg id="svg" viewBox="-10 -10 220 220" width="90%">
<text x="80" y="106" id="currentTemp" font-size="18" font-weight="bold" style="fill: #C9AC68">{{currentTemp}}°</text>
<circle class="background" cx="100" cy="100" r="35" stroke="#C9AC68" />
<circle class="background" cx="100" cy="100" r="55" stroke="#B25538" />
<circle class="background" cx="100" cy="100" r="75" stroke="#507282" />
<circle class="background" cx="100" cy="100" r="95" stroke="#7E8959" />
<circle id="line1" class="overlayLine" cx="100" cy="100" r="35" stroke="#C9AC68" stroke-dasharray="0, 3000" stroke-dashoffset="126" transform="rotate(-90,100,100)" />
<circle id="line2" class="overlayLine" cx="100" cy="100" r="55" stroke="#B25538" stroke-dasharray="0, 3000" stroke-dashoffset="188" transform="rotate(-90,100,100)" />
<circle id="line3" class="overlayLine" cx="100" cy="100" r="75" stroke="#507282" stroke-dasharray="0, 3000" stroke-dashoffset="251" transform="rotate(-90,100,100)" />
<circle id="line4" class="overlayLine" cx="100" cy="100" r="95" stroke="#7E8959" stroke-dasharray="0, 3000" stroke-dashoffset="314" transform="rotate(-90,100,100)" />
</svg>
</div>
<div id="seasonImage"></div>
THANKS!