Why can’t I set the font size of a visited link?

James Fisher / filed under HTML & CSS

Visited links show up purple; unvisited links show up blue. This distinction goes back to the beginning of the web. But CSS allows you to customize this visual difference using the :visited pseudo-selector! Say you wanted to make visited links gray and smaller, to indicate to the user that this link is “done”:

Subscribe to newsletter

Best design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency

Privacy Policy