Having an issue with an image not loading in my responsive.css code. I am attempting to change a background image based on different resolutions of the website. The path to the image has been checked and it is in the same file that contains HTML, CSS, and responsive files. Any suggestions on how to get this to work? I am new to HTML and CSS.
HTML:
#background {
width: 100vw;
background-position: center;
background-size: cover;
}
responsive.css: figure {
width: 100%;
}
@media (max-width: 992px) {
#background {
height: 50vh;
}
}
@media (min-width: 993px) and (max-width: 1170px) {
#background {
height: 70%;
width: 100%;
background-image: url('../zadanie-domowe-rwd-materialy/obrazy/man-2.jpg');
}
}
<figure>
<img src="zadanie-domowe-rwd-materialy/obrazy/man-1.jpg" alt="Zdjęcie nr 1" id="background">
</figure>