I have a <div>
with background image like that:
#container {
background-image: url("../img/bg.jpg");
background-size: 100% auto;
}
and I have div with Id container
<div id="container"></div>
Here is my css:
#container {
position: absolute;
display: block;
max-width: 1960px;
max-height: 1960px;
width: 100%;
height: 100%;
background-size: cover;
background-repeat: no-repeat;
cursor: pointer;
background-image: url("../img/bg.jpg");
background-size:100% auto;
}
When i resize browser window my background image scaled too of course, and I want to get height of actual scaled size of my background image with pure js or j query how to do that?