WEB CSS Help - link attributes applied to an image

Discussion in 'OT Technology' started by Lava Joe, Feb 6, 2009.

  1. Lava Joe

    Lava Joe Guest

    Hello please. The CSS on my page is set up to show links with a green background. This works alright but the problem is if I have an image which is also a link it too gets the green background applied to it. It actually shows properly in IE, but in Chrome/Firefox it has a green underline leaking out from under it. I've fiddled with it over the past few days to no avail. What could I be missing here?

    This snippit shows what's going on. The green underline underneath the linked image does not appear in IE, and I want it removed for display in other browsers.
    [​IMG]
     
  2. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,925
    Likes Received:
    11
    Location:
    Los Angeles
    You can select image elements by itself and remove the green background. Ie:

    Code:
    a img {
      background-color: transparent;
    }
    
     

Share This Page