WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] CSS and links (5 posts)

  1. Roen
    Member
    Posted 6 years ago #

    As an unexperienced CSS and web designer I have trouble locating in my CSS file the line where I can change the color of a link.

    If I change "a visited" then also my nav bar changes color and I only want to change the color of the link itself.

    If you browse to My Site you see with the last post that the word fascinations is not high-lighted although it is a link. Do I need to add some code to achieve this? Thanks in advance.

  2. SusieN
    Member
    Posted 6 years ago #

    To your CSS file, add something like this:

    .storycontent a, .storycontent a:visited {
     color: #999;  /*This is the color of the regular link*/
     text-decoration: none;
    }
    
    .storycontent a:focus, .storycontent a:hover, .storycontent a:active {
     color: #3b4a61; /*This is what color it becomes when you hover or click*/
     text-decoration: underline;
    }
  3. Roen
    Member
    Posted 6 years ago #

    Worked like a charm, thanks... btw even the colors are right, how did you retreive those? I thought style.css can not be read....

  4. Roen
    Member
    Posted 6 years ago #

    Something else; the code from SusieN worked but one the catagories in a post is colored and the rest is grey? The word "China" is colored and the rest isn't. How do I solve this? Thanks in advance.

  5. Roen
    Member
    Posted 6 years ago #

    I removed and added the category and it was solved...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags