WordPress.org

Ready to get started?Download WordPress

Forums

Small wierd link-color problem (5 posts)

  1. fredrik
    Member
    Posted 8 years ago #

    Throwing up a temp design on my blog. All is fine (oh, well) except from the behaviour of the links in the right column under the heading "Oddities...". Fore some strange reason only some of the links - by random it seemes - follow the css rule to become blue. The others follow the a mix of other rules and the side wide rule!?

    Surely something simple. Any ideas?

    Oh, and this is the site - http://apt47.com

    Thanks

  2. fredrik
    Member
    Posted 8 years ago #

    Well found out that it was a problem of hierarchy in he css file - by placing that rule at the bottom of the section it works. But then the other links in that column (class ID) becomes blue, again at random, instead of black - so it's the same problem.

  3. Michael Bishop

    Posted 8 years ago #

    I couldn't load your style sheet, but judging from the links in your sidebar, you need to change the #sidebar a:visited color to what ever it is you want, if you don't want the blue. #sidebar a, #sidebar a:hover is currently black.

  4. fredrik
    Member
    Posted 8 years ago #

    Couldn't load the stylesheet? that's strange. My theme is written from scratch so I don't have the clever names and layouts kubrick has :( anyway.. thing is that rules are being overridden for some reason i dont understand.

    The rule I'm using:

    #content2 a:link, a:visited {
    color: #000;
    text-decoration: none;
    }

    #content2 a:hover {
    color: #000;
    text-decoration: underline;
    }

    #content2 .oddities a:link, a:visited, a:hover {
    color: #A47119;
    text-decoration: none;
    }

    Doesn't seem to matter how I move then around. Always wrong somewhere.

  5. Michael Bishop

    Posted 8 years ago #

    You can't carry the #content2 over to the a:visited, meaning you must add the block element to both, change it to #content2 a, content#2 a:visited {...
    And when I said I couldn't load the style sheet, it was late, and I was only using the FF Web Dev plugin, it was choking on the fact that you call a print.css but don't have one? Not sure. But I could copy and paste the location of the style sheet and load it directly.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.