Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 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
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "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

  • #3
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #5
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #6
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ooops, my mistake.

    I forgot a closing } in my css.

    Looks good now!

    Thanks all...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •