I am working on a front end project where I want to display an image in the starting page of my app as the example below :
With my code below I have my image inside a container and I want it to fit my container size and fill the whole screen and then continue working the rest of the website below the image.However my image does not fit in the whole screen and I do not know why :
.welcome-container{
width:100%;
height:500px;
margin:0px;
}
.welcome-pic img {
width:100%;
height:500px;
}
<div class = "welcome-container">
<div class = "welcome-pic">
<img src = "IMAGES/welcome_pic.jpg" alt="#">
</div>
</div>
I have set the image height and width just like the container's and the margin to 0 but there are small gaps around the image . I would appreciate your help with this . Thank you in advance .