carousel not taking height automatically.

hey folks here is my pen. https://codepen.io/adityakirad/pen/zYyxNMN in this I have to explicitly set the carousel container height which I don't want I want it to take space automatically
7 Replies
Igor Verve
Igor Verve15mo ago
I have changed the value of this class and the background carousel is now 100vh of the body. Is that what you were looking for?
Igor Verve
Igor Verve15mo ago
No description
Aditya Kirad
Aditya Kirad15mo ago
nope what I want is I don't want to specify the height on div and body and then div should take required height automatically
Igor Verve
Igor Verve15mo ago
@adityakirad The code pen seems to be broken rn so I can't check your example again. But div's height is automatically set by its content if we do not declare explicit height value. Have you tried min-width: 100vh instead?
Aditya Kirad
Aditya Kirad15mo ago
nope what problem are you having with codepen
Igor Verve
Igor Verve15mo ago
It has gone empty
No description
Aditya Kirad
Aditya Kirad15mo ago
yeah its supposed to cause we have not define height explicitly if you define the height explicitly it will come back what I want is my carousel height to be fluid so that properly scales from desktop to mobile
Want results from more Discord servers?
Add your server