Hi there theremotedr,
well, if you want to test the code that was used on
the site to which you linked, then add this code...
Code:
<div id="tel-email">
<a href="tel:07899 827427">07899 827427</a>
<a href="mailto:theremotedr@gmail.com">Email</a>
</div>
..just above this line....
Code:
</footer><!-- #end footer area -->
Here is the CSS that I used for my test...
Code:
#tel-email {
display: none;
padding: 1em 0;
background-color: #036;
}
#tel-email a {
margin: 0 0.5em;
font-size: 1.5em;
color: #fff;
text-decoration:none;
}
#tel-email a[href^="tel"]::before {
content: '\0260e ';
}
[href^="mailto"]::before {
content: '📧 ';
}
@media ( max-width: 30em ) {
#tel-email {
display: block;
}
}
It will display the code at widths less than 30em (480px).
This value and all the others may be edited to suit your
actual requirements.
Note:-
As I do not have a mobile device I have not, obviously,
been able to test the telephone functionality.
coothead
Bookmarks