Imagine you have a URL like this: . Is there a way to use the width and height parameters in the background-image:url property based on the dimensions of another div?
.thumb{
border:1px solid red;
display:inline-block;
height:300px;
width:300px;
}
.thumbnail{
background-size:100% 100%;
background-repeat:no-repeat;
background-image:url(http://imageurl/image.jpg?w=thumb.width&h=thumb.height)
}