main_container => it has background-image: url('img1.jpg'); card => height is only 100px.
footer => it can be anything but let's consider 100px.
Let’s say if main_container is using the same height as of img1.jpg that is 500px. and card height is only 100px then we have 400px space remaining.
i wanted to keep that space as gap between the main_container & footer.
Solution: - i can use the padding/margin-bottom: 400px. but what if the card height got change or image height is changed, it should adjust automatically.
I tried a solution you can find here using img tag. that is working looking for better approach using css without img tag.