Skip to content

Instantly share code, notes, and snippets.

@liamzebedee
Created September 22, 2012 04:53
Show Gist options
  • Save liamzebedee/3765167 to your computer and use it in GitHub Desktop.
Save liamzebedee/3765167 to your computer and use it in GitHub Desktop.
Chrome <a> rel attribute bug
<html>
<head>
<style>
a {
text-decoration: none;
}
a[rel^="tag"]:before {
content: "#";
font-size: 1.4em;
}
a[rel^="category"]:before {
content: "{";
font-size: 1.4em;
}
a[rel^="category"]:after {
content: "}";
font-size: 1.4em;
}
</style>
</head>
<body>
<a href="" rel="category tag">CatTag</a>
<a href="" rel="category tag">AnotherCatTag</a>
<a href="" rel="tag">Tag</a>
<a href="" rel="tag">AnotherTag</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment