HTML:
<div class="logo-container">
<span>some text</span>
</div>
CSS:
.logo-container {
display: block;
background: url(img/logo.png) no-repeat center;
background-size: contain;
width:100%;
height:20%;
}
How can I get the current dimension on which the background-image was scaled to?
I'm assuming that the background image dimension differs from the dimension of the .logo-container
.