treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] a:href color different in IE and other browsers

  • Hey guys. codepen

    Open it up in Firefox or Chrome and then in Internet Explorer. You will see link color is different. I would love to have links below "Last from blog" to be blue but it seems like I can't. They should be by default since i have it set already a:link,a:visited{ text-decoration:none; color:#2358b1; }

    Help please :)

  • Are you sure that is a valid hex colour?

  • That color is overridden by:

    .linkovidno li a:link, .footerunutra a:visited{
      color:#171717;
    }
    

    I don't know why IE ignores that though.

    @Paulie_D why wouldn't it be? Hex color can have 3 or 6 digits from 0-9 and a-f :)

  • Are you sure that is a valid hex colour?

    Of course #2358B1 is a valid hex color. Tired Paulie? :P

  • Of course #2358B1 is a valid hex color. Tired Paulie? :P

    Away for the weekend...and 'tired?'...No.....drunk..possibly.! :)

  • CrocoDillon thanks :)

    When i was changing div names it left out visited so thats why it was like this:

    .linkovidno li a:link, .footerunutra a:visited{
      color:#171717;
    }
    

    it is now

    .linkovidno li a:link, .linkovidno a:visited{
      color:#171717;
    }