I designed a website for a friend: www.donjas-wellbeingforkids.co.uk
I set up a Facebook Messenger Contact Us Link directly from the contact page here: donjaswell-beingforkids contact
It's functional on desktop, where it seamlessly opens Facebook Messenger. However, the mobile version of Facebook Messenger operates differently, redirecting users to an application.
Is there a way to adjust the link based on screen size? Here are the contents of my responsive.css file and my contact.html file.
@media screen and (min-width: 550px) {
/*******************************************
TWO COLUMN LAYOUT
********************************************/
#primary {
width: 50%;
float: left;
}
#secondary {
width: 40%;
float: right;
}
/*******************************************
COLLECTIONS
********************************************/
#collections li {
float: left;
width: 45%;
margin: 2.5%;
}
#collections li a p {
font-size: 90%;
}
#collections li a:hover p {
font-size: 95%;
}
}
@media screen and (min-width: 700px) {
/*******************************************
COLLECTIONS
********************************************/
#collections li {
float: left;
width: 28.3333%;
margin: 2.5%;
}
#collections li a p {
font-size: 75%;
}
#collections li a:hover p {
font-size: 80%;
}
}
@media screen and (min-width: 750px) {
/*******************************************
PAGE: ABOUT
********************************************/
.profile-photo {
float: left;
margin: 0 5% 1150px 0;
}
#collections li a p {
font-size: 80%;
}
#collections li a:hover p {
font-size: 85%;
}
}
@media screen and (min-width: 1000px) {
/*******************************************
PAGE: ABOUT
********************************************/
.profile-photo {
float: left;
margin: 0 5% 800px 0;
}
#collections li a p {
font-size: 100%;
}
#collections li a:hover p {
font-size: 105%;
}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Contact | Donja's Well-Being For Kids</title>
<link rel="stylesheet" href="css/normalize.css">
<link href="https://fonts.googleapis.com/css?family=Gloria+Hallelujah|Indie+Flower|Shadows+Into+Light|Shadows+Into+Light+Two" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/responsive.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="favicon" type="image/png" href="img/Kids-Well-Being.png">
</head>
<body>
<header>
<a href="index.html">
<img id="logo" src="img/Donjas-Well-Being-For-Kids.png" alt="Donja's-Well-Being-For-Kids">
<!--
<h2 id="logo" class="centerText">Donja's Well-Being For Kids</h2>
-->
</a>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html" class="selected">Contact</a></li>
</ul>
</nav>
</header>
<div id="wrapper">
<section id="primary">
<h3>General Information</h3>
<p>For more details please contact me.</p>
<p>I have a current DBS Certificate and also Public Liability Insurance.</p>
</section>
<section id="secondary">
<h3>Contact Information</h3>
<ul class="contact-info">
<li class="phone"><a href="tel: 07916 337 916">Phone: 07916 337 916 </a></li>
<li class="mail"><a href="mailto: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="82c6e...">[email protected]</a>">Email: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b1f5de...">[email protected]</a></a></li>
<li class="facebook"><a href="https://www.facebook.com/messages/t/1724861014479447" target="_blank">Click to Message me on Facebook!</a></li>
</ul>
<p></p>
</section>
<footer>
<a href="http://facebook.com/Donjaswellbeingforkids" target="_blank"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2017 Donja's Well-Being For Kids.</p>
</footer>
</div>
</body>
</html>