Your #nav-bar should always be at the top of the viewport.
This is my code:
font-family: italic, sans-serif;
margin: 0;
padding: 0;
background-color: pink;
}
header {
padding: 20px;
text-align: center;
}
header img {
max-width: 100%;
height: auto;
}
nav {
margin-top: 30px;
}
nav ul {
list-style-type: none;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 20px;
text-align: right;
}
nav ul li a {
text-decoration: none;
color: gray;
font-weight: bold;
font-style: italic;
}
.sample {
max-width: 100px;
margin: 0 auto;
padding: 20px;
}
.dress {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
margin-top: 20px;
}
.dress-item {
flex-basis: calc(33.33% - 20px);
margin: 10px;
text-align: center;
border: 1px solid black;
padding: 20px;
}
footer {
background-color: #333;
color: blue;
text-align: center;
padding: 20px;
position: relative;
bottom: 0;
width: 100%;
}
iframe {
width: 460px;
height: 265px;
}
#nav-bar {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
}
@media screen and (max-width: 1000px) {
}
How do i go about it