In my HTML, I have a div called innerDetails
which serves as a flex item with the following CSS properties:
.cover {
height: 100vh;
width: 100%;
}
#screenContainer {
display: flex;
justify-content: center;
align-items: center;
}
/* Other CSS styles omitted for brevity */
I am facing an issue where the height of the div reduces automatically from the specified 100% to 0%. Adding padding did not resolve this issue. However, when I add text inside the div, only that portion displays the background image.