我有一个CSS ::after
,它显示一个SVG图像。
我希望我的容器在这个SVG图像之后显示。
发生的情况是,SVG“没有占用任何空间”,因此下一个DIV被SVG覆盖了。
感谢您对此进行调查。
.overpass-info-container::after {
content: " ";
position: absolute;
top: 100%;
left: 0;
height: 182px;
width: 100%;
background-color: white;
background: url("../images/curve.svg") bottom center;
background-size: 100%;
outline: 1px solid red;
}
/* finding container */
section.finding-container {
top: 180px;
display: flex;
position: absolute;
}
.find-agent {
margin-left: auto;
display: flex;
flex-flow: column;
}
.agent-profiles {
display: flex;
flex-flow: column;
}
<!-- ***** finding container ***** -->
<section class="finding-container">
<div class="find-agent">
<img src="./images/search.svg" alt="search">
</div>
<div class="agent-profiles">
<img src="./images/profiles.svg" alt="profiles">
</div>
</section>