@media only screen and (max-width: 600px) {
@media only screen and (max-width: 768px) {
/* For mobile phones: */
[class*="col-"] {
width: 100%;
}
}
header{
position: fixed;
display:flex;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
/* Change the link color to #111 (black) on hover */
li a:hover {
background-color: #111;
}`<header id="header"><img id="header-img" src="https://fimgs.net/mdimg/dizajneri/o.160.jpg">
<nav id="nav-bar">
<ul>
<li><a href="#home" class="nav-link">Home</a></li>
<li><a href="#news" class="nav-link">News</a></li>
<li><a href="#contact" class="nav-link">Contact</a></li>
<li><a href="#about" class="nav-link">About</a></li>
</ul>
</nav>
</div>
<iframe width="560" height="315" src="https://www.youtube.com/embed/GBsYuJtMXqE" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen id="video"></iframe>
</header>
</div>
<body>
<div id="home"></div>
<div id="news"></div>
<div id="contact"></div>
<div id="about"></div>
</body>
<footer><form id ="form" action=" https://www.freecodecamp.com/email-submit">
<input type="email" name="email" placeholder="Enter A Email" id="email">
<input type="submit" name="submit" id="submit" action=" https://www.freecodecamp.com/email-submit" >
</form></footer>`
My image is big with a whit background but the changes I made to the nav do not show and I’m stuck . Thanks in advance
