1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How can I change the text color of these links without changing the color of other links in website.

Discussion in 'CSS' started by Rashida H., Mar 15, 2019.

  1. #1
    Hi There,

    Hope, you all are doing well.
    SEMrush
    WEBSITE: https://www.directsupplyservices.com/brands/

    I am stuck with this one. I want to change the color of these links to red (#a55353) but just for the BRAND page, not the entire site.
    For your reference:
    https://screenshots.firefox.com/CAwLzzA37n9pF8dh/www.directsupplyservices.com

    Kindly advise, how can I do that?
    Thanks & Regards,
    Rashida H.
     
    Solved! View solution.
    Rashida H., Mar 15, 2019 IP
    SEMrush
  2. sarahk

    sarahk iTamer Staff

    Messages:
    24,749
    Likes Received:
    3,356
    Best Answers:
    97
    Trophy Points:
    615
    #2
    Add a style to the links or to the main div and then add to the stylesheet
     
    sarahk, Mar 15, 2019 IP
  3. Rashida H.

    Rashida H. Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Can you please guide with the code? I am not very good with CSS. I would appreciate your help.
     
    Rashida H., Mar 15, 2019 IP
  4. #4
    Wrap the links in a div and have the divs within those links a specific color.

    So for exampple:

    <div id="container">
        <a href="#">Link</a>
    </div>
    Code (markup):
    So you have you're link code above in a DIV and then add to your CSS the color you want any links inside the the DIV container to be, for example:

    #container a {
        color: #ff0000;
    }
    Code (markup):
    So now any links within that DIV section ONLY should be colored: #ff0000

    I hope this helps.
     
    R33KO, Mar 15, 2019 IP
    sarahk likes this.
  5. Rashida H.

    Rashida H. Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    It worked. Thank you so much for the help. Highly appreciated.
     
    Rashida H., Mar 15, 2019 IP
  6. R33KO

    R33KO Greenhorn

    Messages:
    27
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    18
    #6
    You're very welcome, I'm glad I could help.

    Please note, you can also rename container to whatever you like.

    Also, to learn more stuff like this yourself sign up to freecodecamp it's totally free of charge and will help you to develop you coding skills and knowledge.

    This kind of stuff is covered in your first few lessons, good luck with your website!
     
    R33KO, Mar 15, 2019 IP