SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Evangelist Sikwondo's Avatar
    Join Date
    Sep 2005
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Img A Border - Am I Going Mad?

    Hi Peeps,

    Sorry, such a stupid question and probably glaringly obvious but can't see for the life of me.

    My image links have a bottom border on hover.

    I have tried using the css:

    fieldset, a img { border: none; }

    But no joy - the site is:

    http://cwaf.pelli.co.uk/how-to-help/

    The button i mean is the "donate button".

    Thanks in advance.
    Si

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,014
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)

    underline

    Maybe if you gave the image tag height and width values? Or maybe the underline is from the <a> tag not the <img> tag?

  3. #3
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    a:hover { color: #87B516; text-decoration: none; border-bottom: 1px solid #87B516; }

    just a wild guess...
    but when I removed the border-bottom bit, the underline / border disappeared

    a:hover { color: #87B516; text-decoration: underline; } is what you actually wanted.

  4. #4
    SitePoint Evangelist Sikwondo's Avatar
    Join Date
    Sep 2005
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dr John View Post
    a:hover { color: #87B516; text-decoration: none; border-bottom: 1px solid #87B516; }

    just a wild guess...
    but when I removed the border-bottom bit, the underline / border disappeared
    Sorry should have explained .. I want the border-bottom to be present on the text links, just not on image links.

    Tried a img { border: none } - no joy though

  5. #5
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    see edit

  6. #6
    SitePoint Evangelist Sikwondo's Avatar
    Join Date
    Sep 2005
    Posts
    426
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dr John View Post
    see edit
    Thanks, I used border-bottom because previously I had the non-hover states with a dotted bottom border, and for hover, if u ised text-decoration, underline, it moved the line up a bit and looked weird.

    But because I have removed the dotted border, I should have done what you said.

    Thanks for your help


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
  •