1
Hello!
I’d like to put an edge on my counter. The problem is that my counter is based on the case numbers of json, so the numbers in html do not exist.
Is there any way to edge the div that has no content?
document.getElementById("contadorprincipal").innerHTML = arrayResultados.length;
.contadorprincipalcapa {
color: white;
font-size: 15px;
margin: 10px;
}
<div class="contadorprincipalcapa">
<div id="contadorprincipal"></div>
</div>
You need to add content, padding or set a fixed/minimum size to the div
– edson alves