Custom CSS for visited links color not working in Safari

I'm trying to change the color of visited links, Safari 18--the colors (new vs already visited) are too similar for me.


As per recommendations here and elsewhere I made a css file containing the following:


a:visited { color: red !important; }


saved it as "CustomLinkColor.css" and then imported that file in

Safari > Settings... > Advanced > Style Sheet


No change. I quit and relaunched Safari; still nothing. I restarted my Mac (OS X 15.6.1), and still no change.


I did see someone talk about a similar problem, but that's Safari 12 and the possible fix doesn't seem to apply anymore.

Posted on Aug 18, 2026 8:13 AM

Reply
2 replies

Aug 18, 2026 3:58 PM in response to WheelieNick

Interesting. I tried doing this in Firefox with the built in-tools, and it worked, but choosing custom colors also messed up all the other links (clickable sections became white), and the visited link info didn't persist: leave that page and return (or see that same link any other way) and the visited links are shown as not having been visited.

Custom CSS for visited links color not working in Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.