Hi,
For foreground images i would use the pngfix method here.
If you don't want to use that then you could do something like this which works but is a bit overkill.
Code:
#banner {
float: left;
width: 390px;
height: 500px;
background:url(http://www.modeldock.de/images/jens_braun.jpg) no-repeat center center;
}
#banner span{
float: left;
width: 390px;
height: 500px;
background:url(http://www.modeldock.de/images/frame.png) no-repeat center center;
}
#banner img{visibility:hidden}
IE only code follows:
Code:
* html #banner{
background-image:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.modeldock.de/images/jens_braun.jpg',sizingMethod='image');
}
* html #banner span{
background-image:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.modeldock.de/images/frame.png',sizingMethod='image');
position:relative;
top:-25px;
left:-5px;
}
* html #badge{
background-image:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.modeldock.de/images/badge.png',sizingMethod='image');
}
* html #badge img{visibility:hidden}
Then the html would have to be like this:
Code:
<!-- // header -->
<div id="wrapper">
<div id="content"> <span id="banner"><span><img src="http://www.modeldock.de/images/jens_braun.jpg" /></span></span> <span id="badge"><img src="http://www.modeldock.de/images/badge.png" /></span>
<div id="text">
Basically I put the images in the background and used the alpha image filter. The foreground images are hidden but left in place for accessibility etc.
The pngfix method would be neater but read the article thoroughly as it needs to be done properly. However the above method I've shown is working now in IE and Firefox ok.
Bookmarks