Hello all!
I need help with scaling my image for mobile view. I have tried resizing it using : 1600 by 500, 1920 by 1080 and all the suggested sizing for debut theme, but none of them crop correctly. Is there a code that i can use to make my images responsive?
What effect are you looking to achieve with your image?
If you're looking to have the image not crop at all, go to your Theme.scss.liquid and put this at the bottom put
@media (max-width: 749px) { .hero { background-size: 100% 100%; } }
This will fit your image to the size of the background image, but you're going to get a stretched/squashed image unless your image matches the aspect ratio of the "image with text overlay" container
Hey,
What is the aspect ratio of the "image with text overlay" container you earlier mentioned?
User | Count |
---|---|
418 | |
209 | |
144 | |
53 | |
42 |