Multiple link colors on 1 page?


#1

I have several sections on a single page with different background colors. I have the default text link set to one color. However I need the link colors to be another color in another section. I am using some basic inline css for this second section, but the default link underline color is still showing up right above the css color I’ve assigned.
Here is my code I’m using:


Get Directions

 

With this code I’m seeing 2 lines under my text link… Any advice is welcome!


#2

Hi Kevin,

Try moving the “style” attribute into the tag.

e.g.

Get Directions

Alternately, if you’re using this style with multiple links on your page, a better way to do this would be to define a CSS class and reference that class within the anchor tag.

Let us know how you go.


#3

Thank so much! That worked!