Image Link Border - PLEASE HELP

Discussion in 'CSS' started by Exnie, Jun 21, 2008.

  1. #1
    So I am coding a new design portfolio for myself in wordpress and I have a problem. One of the things my portfolio will do is grab the excerpts from posts and show them on the front page. These excerpts will be thumbnails of designs I have made. Now what I have is this:

    
    <div class="design">
    <a href="<?php the_permalink() ?>" class="design-link"><?php the_excerpt(); ?></a>
    <div class="d-desc"><?php the_title(); ?></div>
    </div>
    Code (markup):
    The excerpt is the thumbnail and the title is the description of the design. So I want the thumbnail to, when clicked, take you to it's own page. This IS working, but the border that is automatic around image links won't go away. I am sure this is because of the <p> tags around the excerpt that wordpress puts but I can't figure out how to fix this!
     
    Exnie, Jun 21, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Add a img {border: none;} to your stylesheet.

    cheers,

    gary
     
    kk5st, Jun 21, 2008 IP
  3. Exnie

    Exnie Active Member

    Messages:
    412
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thankyouthankyouthankyou!
     
    Exnie, Jun 22, 2008 IP