Not sure how to tackle heights and widths and changes to the slider to get my images in proportion and scale down how I want them for mobile and tablet. I’m happy with my slider images on desktop and I’m aware that I should probably create a new set of assets (portrait) for mobile and tablet. Which I will do.
You really need to give your images a class! The same class. Something like “slider-images” or something like that. Lets use the class “slider-images” for this example.
So remember what we talked about the last time? Same case goes for this.
If you give all images in your slider the class “slider-images” and adds this CSS inside your style tag in your header, then it will work. Easy as that.
Oh god- I thought there was something inherently wrong with them. I always use them because I use different images for different size breakpoints, allowing faster loading times on smaller devices - which often use 4G/3G instead of WiFi.
No no, no need for that! I just like the freedom it provides in my designs. It’s not like the same things cant be obtained with using background-images. But i always felt like using img tag and adding “object-fit” gives me more control then using background-images.