I have a DIV with the following style
.vplayer-container .logo
{
position: absolute;
bottom: 50px;
right: 10px;
background: url(../img/logo.png) no-repea
This is impossible with pure CSS. I think you need to do it with JavaScript. Do you really need this to be dynamic? I think it is less work to change two values in the stylesheet if the logo changes.
CSS cannot do that for background image.
CSS can't do this, the div gets its dimensions from the content within it. The background image is purely a mark of styling.
You should be able to do this with Javascript, finding the height and width values and injecting them into an inline style should do it :)
You can also use an <img>
tag within the .logo
div. This would produce what you intend.