I am looking to customize the color of links in a chat transcript. Specifically, I want to change the links that the customer
sends to red, while keeping the links sent by the agent
in blue.
Can someone provide guidance on how to achieve this using CSS or preferably jQuery? I have attempted the following CSS code but it did not produce the desired result.
.CustomerPost a{
color: white;
}
<span class="MessagePost">
<img alt="" src="images/agent.png">
<span class="Agent">Agent: </span>
<span class="Message">How may I help you?</span>
</span>
<span class="MessagePost CustomerPost">
<img alt="" src="images/user.png">
<span class="User">Customer: </span>
<span class="Message">Hi, I need help!<a href="#">www.google.com</a></span>
</span>