Last active
February 19, 2016 19:50
-
-
Save townivan/83dbddfbe4bd9337265a to your computer and use it in GitHub Desktop.
raquo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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>› is &rsaquo; in HTML and \203A in CSS</p> | |
<p><a href="#">Read More<span class="raquoSpan">›</span></a></p> | |
<p><a href="#">Read More<span class="raquoSpan">»</span></a></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This allows you to use the raquo characters in links without underlining the 'arrow'. Using display:inline-block is the key trick.