Results 1 to 4 of 4

Thread: Image Background Transparency

  1. #1
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Background Transparency

    I created a button to use with my drop-down menu. In Paint Shop Pro, I saved it as a .gif file, with transparent background. I made the background various colors, red, black, green, etc. I can post this image on a web page and the background is transparent. However, when I use it as a drop-down menu (in a table) with the code...

    <img border="0" src="images/Buttons/BlueMembers.gif" class="menuanchorclass" rel="menu1" rev="lr" width="160" height="58"><br>

    and with the table opening

    <td width="100%" valign="top" bgcolor="#C2CDC6" bordercolor="#C2CDC6">

    the background shows Yellow.

    Why?

    Earl

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Need all of your code.

  3. #3
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The Default.htm file contains my code.
    The image file is attached.
    my menucontents.js is attached.

    Assume you don't need the anylinkmenu.js and anylinkmenu.css files.

    I didn't see the htm file that I uploaded so the link to that is...
    http://www.pearnet.com/ats/default.htm

    Thanks

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Remove "background:yellow none repeat scroll 0 0;" from ".selectedanchor" in your css.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •