I have set the width of 80% and height of 600px, and I need to make it responsive now. How can i make some function or if there is solution to do it in CSS code. It is carousel for images so the slide movement depends on the picture width, but height is fixed. And it don't allow me to change height to %.
Asked
Active
Viewed 10 times
0
-
Set the altitude value to "80vh", which means it will cover 80% of your screen And if you do not want to use "vh", using the units "em", "rem" seems more correct, but for height according to the experience of using the units "%" and "px" can be problematic. – minabagheri Dec 27 '21 at 12:02