Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS logo background

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24771
    saiful
    Member

    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.

    #57090
    Supratim
    Member

    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.

    #57098
    TheDoc
    Member

    IE6 does not support PNG-24 with transparent backgrounds. There are MANY MANY MANY fixes available on the interwebs.

    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&quot; type="text/javascript"></script>
    <![endif]–>

    If that doesn’t work, you’ll have to search for other options.

    #57145
    Rob MacKay
    Participant

    As doc said – but for that fix just make sure you rename all the pngs that have transparency to include -trans.png at the end example:

    myimage.png

    should be

    myimage-trans.png

    #57268
    ploplo8701
    Member

    try this one

    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]–>

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.