For any visited (a:visited
) web page, I would like to display those links on my website with a small checkmark to the left of the link.
So for example:
"this is an unvisited link"
√ "this is a visited link"
Question: how do I accomplish the checkmark using CSS?
In the web page's HTML source code, add one of the following Unicode HTML entities, depending on the type of check mark you want to insert. ☑ - inserts the " ☑ " symbol. ✓ - adds the " ✓ " symbol. ✔ - inserts the " ✔ " symbol.
You can use a combination of background and padding to get this effect.
a:visited {
background: transparent url("path/to/checkmark.png") left center no-repeat;
padding-left: 10px;
}
Adjust the padding, and background position to fit your needs. Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With