-2
What is the best way to create Ivs with the images below using CSS? I would like my dashboard to look exactly like the image you have as an example.
I created two classes to try to insert, but the same gave problem and the image was cut.
.squareGray{
background-color:#808080;
color:white;
font-size:30px;
background-image:url("../Images/caixa_cinza.png");
background-size: cover;
}
.squareGreen{
background-color:green;
color:white;
font-size:30px;
background-image:url("../Images/caixa_green.png");
background-size: no-repeat;
}
<c:if test="${realizadoSG < metaSG}">
<div class="container">
<div class="marca">
SAMSUNG
</div>
<div class="meta metaFormat">META:
<fmt:formatNumber value="${SG.rows[0].META}" type="currency"/>
</div>
<div class="rel squareGray">ACUMULADO <br><br>
<fmt:formatNumber value="${realizadoSG}" type="currency" /><br>
<h2>
<c:out value="${SG.rows[0].ACUMULADO}" />%</h2>
</br>
</div>
</div>
</c:if>