display: grid;
font-family: "Josefin Sans", sans-serif;
font-size: 10px;
height: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
margin-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
padding-top: 0px;
position: relative;
I have a container with the above calculated css, and I then set the height to auto so that it matches the content of its children, but for some reason the height remains at 0.
.slideshow {
display: grid;
position: relative;
height: auto;
}
It only changes when I use height: 300px, but I don't want to set a value for height and make it so that it fits the height of the children.
I tried "height: max-content" as suggested here: Expanding a parent <div> to the height of its children
However, it didn't work. Is there something that needs to be done with div containers that uses display:grid?