I have been working on trying to insert an image into my header element. However, when I test it using Live Server, the image doesn't fully fill the width of the container.
Update: The dimensions of the image are 899.875 x 600.
Below is my CSS and HTML code snippets:
* {
margin: 0;
padding: 0;
}
body {
width: 100%;
height: 100%;
color: white;
min-width: 100%;
min-height: 100%;
height: auto;
top: 0;
left: 0;
position: absolute;
}
header {
min-height: 100%;
min-width: 1024px;
width: auto;
height: 600px;
}
img {
max-width: 100%;
max-height: 100%;
}
<body>
<header>
<img id='backgroundImg' src="image.jpg" alt="">
</header>
</body>