I need to position the span element with the ID email-status
directly below the email input field, regardless of the viewport size, to alert users when the email is incorrect.
MY HTML STRUCTURE:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Libre+Franklin:300,600,700&display=swap" rel="stylesheet">
<title>Frontend Mentor | Ping coming soon page</title>
<script defer src="https://friconix.com/cdn/friconix.js"></script>
<script src="index.js"></script>
</head>
<body>
<div class="container">
<div class="content">
<object type="image/svg+xml" data="images/logo.svg" class="logo">
<p class="warning">Your browser does not support SVG. Please update!</p>
</object>
<h1>We are launching <span>soon!</span></h1>
<p>Subscribe and get notified</p>
<form action="#" method="#" class="email-newsletter-form">
<input type="email" name="email" id="email" placeholder="Your email address...">
<span id="email-status">Please enter a valid email</span>
<button type="submit">Notify Me</button>
</form>
<img class="dashboard" src="images/illustration-dashboard.png" alt="Picture of dashboard" />
<footer>
<div class="social-icons">
<a href="#"><i class="fi-xnsuxl-facebook"></i></a>
<a href="#"><i class="fi-xnsuxl-twitter"></i></a>
<a href="#"><i class="fi-xnsuxl-instagram"></i></a>
</div>
<p>© Copyright Ping. All rights reserved.</p>
</footer>
</div>
</div>
</body>
</html>
MY CSS STYLES:
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: "Libre Franklin", sans-serif;
}
@media screen and (min-width: 320px) {
html {
font-size: calc(16px + 6 * ((100vw - 320px) / 680));
}
}
@media screen and (min-width: 1000px) {
html {
font-size: 20px;
}
}
/* Continue CSS styling here */