Created
July 6, 2014 12:06
-
-
Save richerimage/d4756659e157d71996a7 to your computer and use it in GitHub Desktop.
A Pen by Richard Barratt.
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
<div class="wrap"> | |
<ul> | |
<li><a href="tel:+44.121.123.4567">Telephone Link</a></li> | |
<li><a href="sms:+44.121.123.4567">Text Link</a></li> | |
<li><a href="mailto:test@example.com">Email Link</a></li> | |
</ul> | |
</div> |
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
Links Styling | |
------------- | |
Snippets for css targetting of tel:, mailto:, sms:, ect | |
A [Pen](http://codepen.io/richerimage/pen/pvgBu) by [Richard Barratt](http://codepen.io/richerimage) on [CodePen](http://codepen.io/). | |
[License](http://codepen.io/richerimage/pen/pvgBu/license). |
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
.wrap {background: #444; padding: 2em 1em;} | |
/* phone links */ | |
a[href^="tel:"] {color: red;} | |
/* sms links */ | |
a[href^="sms:"] {color: orange;} | |
/* email links */ | |
a[href^="mailto:"] {color: yellow;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment