I'm new to stackoverflow and to web design in general so I apologize if this is an easy fix (it probably is, I'm still learning) or if my vernacular is not right.
I'm just trying to make it so my youtube videos wont get bigger than a particular size. They look how I want them to on mobile devices and tablets because of the "mobile.css" code I wrote into it. But on a larger screen it takes up way too much space and I want to limit how big the videos appear. I hope this makes sense. Thanks so much for your help!
I've tried doing a bunch of things but can't find something that works with my "mobile.css" code. I have decreased the size of the videos on a computer screen but then it makes them smaller on a phone or tablet too which I don't want.
<head>
<link rel="stylesheet" type="text/css" href="mobile.css">
</head>
<div class="video-wrap">
<div class="video-container">
<iframe src="https://www.youtube.com/embed/drv3BP0Fdi8"></iframe>
</div>
</div>
This is the entire page guys. Hopefully this helps.
<!DOCTYPE html>
<html>
<head>
<body style="background-color:linen;">
<style>
body {margin:0;}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #111;
}
.active {
background-color: #185a83;
}
</style>
</head>
<body>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="quotes.html">Quotes</a></li>
<li><a class="active" href="youtube.html">Youtube</a></li>
<li><a href="blog.html">My Blog</a></li>
</ul>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
</head>
<body>
<br>
<br>
<h1 style="color:black;text-align:center">Some Helpful YouTube Videos</h1>
<head>
<link rel="stylesheet" type="text/css" href="mobile.css">
</head>
<br>
<br>
<div class="video-responsive">
<iframe width="853" height="480" src="https://www.youtube.com/embed/drv3BP0Fdi8" " frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="video-responsive">
<iframe width="853" height="480" src="https://www.youtube.com/embed/JWUuno-K5YE" " frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<br>
<br>
<div class="video-responsive">
<iframe width="853" height="480" src="https://www.youtube.com/embed/Lp7E973zozc" " frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<br>
<br>
<div class="video-responsive">
<iframe width="853" height="480" src="https://www.youtube.com/embed/w7rewjFNiys" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
</body>
</html>