I was striving to create a website that would be responsive, however I encountered an issue with the background image not resizing properly and its content becoming misplaced when I zoom in or out.
<div id="background-image">
<div>
/* content here */
<div>
</div>
CSS:
#background-image {
background: url("/assets/beautiful-bg.png") no-repeat;
background-size: cover;
}
Can anyone point out what might be missing in my code?