Hi Guys,
i try to overlay two images, one “background” image and one semi-transparent image above it.
I could get it working, but i am not satisfied with it, cause i have to change the size manually when i resize the widget.
So please see below my coding.
The best option would be something like the original image widget, having the image centered and sized to the maximum of the available widget space.
Any ideas?
My code of the widget with both pictures:
<style>
.backimage
{
top:0px;
bottom:0px;
left:0px;
right:0px;
position:absolute
}
.coverimage
{
top:0px;
bottom:0px;
left:0px;
right:0px;
position:absolute
}
</style>
<div >
<img src="/static/test/background.jpg" class="backimage" height="158" width="158"/>
<img src="/static/test/cover.png" class="coverimage" height="158" width="158" />
</div>
Thanks
Andreas