CODE EXAMPLE:
<div class="logo-container">
<span>some text</span>
</div>
STYLING:
.logo-container {
display: block;
background: url(img/logo.png) no-repeat center;
background-size: contain;
width:100%;
height:20%;
}
Is there a way to determine the dimensions at which the background image was scaled?
If the background image dimension is different from the size of the .logo-container
, how can we find out the current dimensions it is being displayed at?