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
    Nov 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Link colour change

    Hey all,

    I've got this problem that was pointed out to me by a friend who uses Opera, but the problem is present in IE7 (possibly 6, haven't checked) as well. I use Firefox so I never noticed, plus it only affects links, which I never needed to click, so I never noticed when I checked it out in IE7 either.

    Basically, the links on the site in question (http://www.stoptheqtip.ca, it's all PHP and I haven't bothered to make it perfectly XHTML 1.1 compliant just yet... source code should all be viewable via View Source, CSS is at http://www.stoptheqtip.ca/stylesheet.css) are a shade of blue on a very very light blue-gray (essentially white). In Firefox, it works like I want - when someone clicks the link, it doesn't change colours at all. In Opera, however, apparently the link changes colour to white, making it damn near impossible to see. And in IE7, on top of changing colour to white, the link jumps across the page. It's quite bizarre.

    I've been racking my brains over this for some time, and come with up with nothing. I'd really appreciate any help anyone can give me. Thanks in advance!

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,826 Times in 1,810 Posts
    Hello insanedesio,
    I'm not sure that's working how you want in anything. In IE7 and FF2, after you click on a link and then come back... the link is gone.

    Using the CSS editing in the FF Developers toolbar, I was able to get the links to come back by deleting anything that looked like it was styling a link... haven't figured out yet what the exact cause is though...
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It works fine for me in FF2. I think I narrowed it down to the link styles for the navigation links - they're white and also floated to the right, which would explain why it jumps across the page in IE7. But removing it didn't fix the problem, so I'm really at a loss to explain what's causing it.

  • #4
    New to the CF scene
    Join Date
    Nov 2006
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Never mind, I looked at all the link tags and found the problem (I cannot believe that I missed it before). On a couple of tags that I specified in one declaration I forgot to add the proper prefix (i.e. I forgot to add a div#nav to an a:visited) so it was being applied to the entire page. Thanks for the tipoff though .

    I hate myself .

  • #5
    New Coder
    Join Date
    Dec 2006
    Location
    Bahrain
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh b4 u go, NEVER use XHTML DTD because it is harder.
    ALWAYS remember to validate your code

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Stop giving bad advice. If you can't take the time to learn how to code in XHTML then don't. Its really not that much harder.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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