SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Galactic Overlord gold trophysilver trophybronze trophy
    HAWK's Avatar
    Join Date
    Aug 2003
    Location
    New Zealand
    Posts
    12,499
    Mentioned
    944 Post(s)
    Tagged
    14 Thread(s)

    Change border colour for image links

    I am trying to change the border colour for image links from the standard blue and purple, and increase their size. I have tried everything! What am I doing wrong?
    Code:
     a:link { font-family: verdana; color: #9933FF; font-size: 14pt;verdana}
    a:hover { font-family: verdana; color: #0000FF; font-size: 9pt;verdana}
    a:visited { font-family: verdana; color: #006600; font-size: 9pt;verdana}
    a:visited:hover { font-family: verdana; color: #006600; font-size: 9pt;verdana}
     
    a.img:link { border: 7; color: #990033}
    a.img:hover { border: 7; color: #990033}
    a.img:visited { border: 7; color: #FFFFFF}
    a.img:visited:hover { border: 7; color: #FFFFFF}
    Then I am setting the class
    Code:
     <a href="q1.htm" class="img">
    Help and thanks!

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,426
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    try:

    Code:
    a.img:link { border: 7px solid #990033}
    a.img:hover { border: 7px solid #990033}
    a.img:visited { border: 7px solid #FFFFFF}
    a.img:visited:hover { border: 7px solid #FFFFFF}

  3. #3
    Galactic Overlord gold trophysilver trophybronze trophy
    HAWK's Avatar
    Join Date
    Aug 2003
    Location
    New Zealand
    Posts
    12,499
    Mentioned
    944 Post(s)
    Tagged
    14 Thread(s)
    That kind of works... now the border is around two sides (left and bottom). Weird... any idea why?

  4. #4
    Galactic Overlord gold trophysilver trophybronze trophy
    HAWK's Avatar
    Join Date
    Aug 2003
    Location
    New Zealand
    Posts
    12,499
    Mentioned
    944 Post(s)
    Tagged
    14 Thread(s)
    Ignore me - was my cell size.
    Sorted now, thanks.


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
  •