Making a Link Invisible

Discussion in 'CSS' started by avaloncm, May 15, 2007.

  1. #1
    First post here, don't crucify me! :)

    I have several buttons/images that are links. These are the only links where I don't want the link to be visible, ie, blue box. How can I remove blue or any color assigned to the link by using CSS.

    Thanks!
     
    avaloncm, May 15, 2007 IP
  2. IsRoss()

    IsRoss() Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not CSS, but HTML allows you to do this:

    <img src="xxxxx.jpg" border="0">
     
    IsRoss(), May 15, 2007 IP
  3. fablex

    fablex Peon

    Messages:
    468
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    But CSS is cleaner. Just do a:

    img { border:none; }

    Or, if you do have images with borders somewhere, give the images a class and do a border:none; on that class.
     
    fablex, May 15, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Or,
    a img {border: none;}
    Code (markup):
    affects only those images that are within a link.

    cheers,

    gary
     
    kk5st, May 15, 2007 IP
  5. avaloncm

    avaloncm Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I have 5 buttons (images) When I hover over each, a dropdown menu appears. The html solution worked fine, but I wanted to know how to cleanly do it with CSS. Thanks for the help!
     
    avaloncm, May 16, 2007 IP