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
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?
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
@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?
nope
what problem are you having with codepen
It has gone empty
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