Skip to content

Instantly share code, notes, and snippets.

@zhjuncai
Created January 16, 2014 03:01
Show Gist options
  • Save zhjuncai/8449135 to your computer and use it in GitHub Desktop.
Save zhjuncai/8449135 to your computer and use it in GitHub Desktop.
The simple technique described in this article allows us to enhance how mobile users read the text of our web pages. Its compatibility is good because it can be employed in all major browsers, including Internet Explorer starting from version 9. In addition, we can use it in Internet Explorer 8 too using a shim to support media queries.
abbr[title]:after
{
content: " (" attr(title) ")";
}
@media screen and (min-width: 1025px)
{
abbr[title]
{
border-bottom: 1px dashed #ADADAD;
cursor:help;
}
abbr[title]:after
{
content: "";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment