> All in One 586: Use a:visited in your CSS stylesheet

Ads

Monday, March 9, 2020

Use a:visited in your CSS stylesheet

Evert Pot:

Unfortunately, when setting a new color (e.g. a { color: #44F }) the ‘purple visited link’ feature also gets disabled. I think this is a shame, as there’s so many instances where you’re going through a list of links and want to see what you’ve seen before.

The 2 examples I ran into today were:

• AWS Cloudwatch Logs
• Stackoverflow search results

I like those use cases. My take is that :visited is perhaps a bit under-used in general, but not by much. It's useful in that situation where a user might wonder: hmmmm, have I seen this one yet?

I'm not particularly compelled to use it on this site — as I'm not convinced it matters for the UX if you've visited any particular link, particularly not in a blog-like setting as here.

Direct Link to ArticlePermalink

The post Use a:visited in your CSS stylesheet appeared first on CSS-Tricks.



from CSS-Tricks https://ift.tt/2tPwxlr
via IFTTT

No comments:

Post a Comment

Getting Clarity on Apple’s Liquid Glass

Folks have a lot to say about “liquid glass,” the design aesthetic that Apple introduced at WWDC 2025 . Some love it, some hate it, and othe...