Grow your CSS skills. Land your dream job.

a:href color different in IE and other browsers

  • # March 10, 2013 at 5:48 pm

    Hey guys.
    [codepen](http://codepen.io/markomarkogame/pen/Hhulv “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 :)

    # March 10, 2013 at 7:07 pm

    Are you sure that is a valid hex colour?

    # March 10, 2013 at 7:08 pm

    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 :)

    # March 11, 2013 at 4:02 am

    > Are you sure that is a valid hex colour?

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

    # March 11, 2013 at 10:02 am

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

    Away for the weekend…and ‘tired?’…No…..drunk..possibly.! :)

    # March 11, 2013 at 2:11 pm

    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;
    }

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".