How to override the style the anchor of an "Icon List" button using the Custom CSS option

Hi all. I’ve added a Facebook button, and the text is red, which is my standard anchor colour.

I would like to just override this button to a white link, so I’ve tried this:

root a:link, a:visited, a:hover, a:active { color: #ffffff}

However, this makes the footer nav white too:

I can’t seem to target just the Icon text to make it white.

First I want to point out that this line of code:

root a:link, a:visited, a:hover, a:active { color: #ffffff}

Should actually be:

root a:link, root a:visited, root a:hover, root a:active { color: #ffffff}

Otherwise you are targeting all anchors:visited, anchors:hover, and anchors:active. Including those outside of root.

Second, I don’t see why root shouldn’t work, once the above is fixed, but if it still persists to give you issue I would attempt to make the css declaration more specific, attempt something like:

root > a:link, root > a:visited, root > a:hover, root > a:active { color: #ffffff}

Thanks! This works perfectly. And thanks for the explanation - that helps a lot.