Trying to build two versions of my website: one for mobile devices or small browsing windows, and another for large browser windows. Looking to link HTML to different style sheets based on browser size. Current attempt in code only addresses total screen size and isn't effective. Seeking help as a beginner programmer who would greatly appreciate any guidance.
// Navigation Bar Underline
$("a").click(function(){
$("a.active-menu").removeClass("active-menu");
$(this).addClass("active-menu");
});
@font-face {
font-family: 'playfair_displayregular';
src: url('Fonts/Playfair Display/playfairdisplay-variablefont_wght-webfont.woff2') format('woff2'),
url('Fonts/Playfair Display/playfairdisplay-variablefont_wght-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'futuralight';
src: url('Fonts/Futura Light/futura_light_regular-webfont.woff2') format('woff2'),
url('Fonts/Futura Light/futura_light_regular-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
*{
margin:0;
padding:0;
border:0;
}
.topnav {
background-color: rgb(84,104,217);
overflow: hidden;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
position: relative;
}
.topnav a:before {
content: "";
position: absolute;
width: 84%;
...
<div class='romf'>Rsdfadkin.</div>>
</div>
<div class='bio'>
<img class = 'rndface' src="rndface.png" alt="Missing File">
<p class='topname'>
<h1>Rdkin.</h1>
</p>
<p class='school'>
Negh School
</p>
<p class='interests'>
EnginScience
</p>
<p class='location'>
Chicaois
</p>
<p class='mail'>
framail.com
</p>
<p class='num'>
(845504
</p>
<p>
<a target="_blank" rel="noopener noreferrer" href="https://www.linkedin.com/in/rokin-a3a9541a5/" class="fa fa-linkedin"></a>
<a target="_blank" rel="noopener noreferrer" href="https://www.instagram.com/rdkin/" class="fa fa-instagram"></a>
</p>
<p>
</div>
<div class='aboutfront'>
<h2 class='abt'>
About
</h2>
<p class='myback'>
MY BACKGROUND
</p>
<p class='abtme'>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem deserunt, aperiam consequuntur
beatae molestias eaque repudiandae nulla error veritatis
illo? Deleniti necessitatibus magni, maxime asperiores veniam laborum quisquam placeat. Deleniti?
</p>
</div>
<footer class='footer'>
<p>
© 2020 By Rodsfadkin.
</p>
</footer>
</body>
</html>