Skip to content

Instantly share code, notes, and snippets.

@townivan
Last active February 19, 2016 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save townivan/83dbddfbe4bd9337265a to your computer and use it in GitHub Desktop.
Save townivan/83dbddfbe4bd9337265a to your computer and use it in GitHub Desktop.
raquo
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>raquo</title>
<style type="text/css">
a:link{text-decoration:none;}
a:hover, a:active{text-decoration:underline;}
.raquoSpan{
font-family:Arial, Helvetica, sans-serif;
line-height: 1; /* changed from 0 to 1 to fix iPad air issue */
display: inline-block; /* to prevent text-decoration inheritance */
text-decoration:none;
padding-left:5px;
}
</style>
</head>
<body>
<p>&rsaquo; is &amp;rsaquo; in HTML and \203A in CSS</p>
<p><a href="#">Read More<span class="raquoSpan">&rsaquo;</span></a></p>
<p><a href="#">Read More<span class="raquoSpan">&raquo;</span></a></p>
</body>
</html>
@townivan
Copy link
Author

This allows you to use the raquo characters in links without underlining the 'arrow'. Using display:inline-block is the key trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment