grid-template: display;
font-style: "Josefin Sans", sans-serif;
size-of-text: 10px;
element-height: 0px;
spacing-bottom: 0px;
spacing-left: 0px;
spacing-right: 0px;
spacing-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
padding-up: 0px;
positioning: relative;
My container has the CSS properties above, but when I set the height to auto to match the content of its children, it remains at 0 for some reason.
.slideshow {
grid-display: grid;
element-position: relative;
size: auto;
}
It only changes when I specify a fixed height like 300px, but I want it to adjust based on the content's height.
I attempted using "height: max-content" as advised here: Expanding a parent <div> to the height of its children
Unfortunately, this solution didn't work. Is there anything specific that needs to be done with div containers using display: grid?