Web Analytics Made Easy -
StatCounter Problem formatting href on image with CSS - CodingForum

Announcement

Collapse
No announcement yet.

Problem formatting href on image with CSS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem formatting href on image with CSS

    Okay, I'm sure someone out there will see my mistake here very quickly, but for the life of me I can't figure out why I can't get my href colors (around images) to change to white. I'm using DW MX2004, if that matters.

    I want the "1" border around my images (hrefs only) to be white wheter they have been visited, active, hover, etc...

    I just can't seem to get it to work.

    The link is: http://www.zilay.com/house/houseindex.htm

    Some functionality may not be there yet, as I'm working on migrating my site from FrontPage to DW MX2004.

    Any help is appreciated!

    Rob

  • #2
    "The operation timed out when trying to connect to zilay.com"
    Your server's down.

    Anyway, this should do it. Put it in your style sheet or thbe head of your doc. between <style></style> tags.
    Code:
    a img {border:1px solid #fff;

    I take no responsibility for the above nonsense.


    Left Justified

    Comment


    • #3
      Much appreciated response, mindlesslemming. I do have another question though. While that line of code updated my HREF images, it did not fix the link HREF - which still appears blue and underlined. I want this text to appear white, but yellow when on hover - and white again after being visited.

      Is there some other location I'm setting these parameters and overlooking it?

      Any help is appreciated.

      Thanks,

      Rob

      Comment


      • #4
        More CSS:
        Code:
        a:link { color: #fff }
        a:visited { color: #fff }
        a:hover { color: #ff0 }
        a:active { color: #ff0 }
        David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
        W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

        Comment


        • #5
          Tried it, still isn't working. It must be getting this information from somewhere else?

          I have even gone so far as to set these parameters within the "page properties" in MX2004. It still appears to get overwritten!

          Any more ideas?

          Comment


          • #6
            Ooops, my mistake.

            I forgot a closing } in my css.

            Looks good now!

            Thanks all...

            Comment

            Working...
            X