a little issue with css

Discussion in 'CSS' started by News Updates, Feb 14, 2011.

  1. #1
    Im using a hover, for a div, style in css. all the links in that div work fine, but the style also apply to images let me what do i do to remove that hover link from images.

    why it is also working at image? because im linking thumbs to its actual size image (as shown below) so the a hover style is also applying at image. I want images to appear normally.


     
    News Updates, Feb 14, 2011 IP
  2. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'll need to add classes to the links around images and use those to take off the hover styling, unless there's some other way you can target just those. It's hard to say without seeing the markup.
     
    kiramanic, Feb 14, 2011 IP
  3. Mike224

    Mike224 Well-Known Member

    Messages:
    80
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    100
    #3
    Do you mean the boder around the images?

    If so the following css will remove that:

    a img {
    text-decoration: none;
    border:none;
    }
     
    Mike224, Feb 14, 2011 IP
  4. News Updates

    News Updates Member

    Messages:
    490
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    35
    #4


    thanks. I got it.
     
    News Updates, Feb 14, 2011 IP