I have an application where users can upload pictures of themselfes and these are displayed to other users through an Image Slider. How can I make these pictures responsive, because sometimes they are looking great and sometimes they just look weird because of the styling. I want these pictures to take around 40% of the height on big devices and 60% of the height on smaller devices like mobile phones. The width should always be around 80%...
I have tried to use max-height and max-width, but then every image container have a different height and a different width which is not looking smooth in the Slider.