when i set a logo(as a transparent image) in my site .In IE6 it shows with background color but i want no background color: how i control it? pls help me.
Well, what I do is...import that png file in photoshop, insert a new layer below it and paste the supposed background there. Then I adjust this png file in Dreamweaver in such a way that it is just above the same area copied from the background.
I recommend adding this in your <head>:
<!--[if lt IE 7]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
<![endif]-->
If that doesn't work, you'll have to search for other options.
myimage.png
should be
myimage-trans.png
in your main css file
div.logo_container{
width:468px;
height:48px;
background:url(../images/logo.png);
background-repeat:no-repeat;
}
in your ie6 hack
<!--[if lte IE 6]>
<style>
div.logo_container
{
background-image: none;
filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src=assets/images/logo.png,sizingMethod='scale');
}
</style>
<![endif]-->