I sell photography prints and it is important for my customers to be able to see the whole of the image that they will be buying. However, if they try to view my products on their mobile device then they will only see a thin slice of the actual image. I've attached images of how it should look (the wide image) and how it actually looks on mobile (the thinner one).
I'm trying to fix this with CSS and the media-screen query - I've tried content-fit rule but that doesn't seem to be working on it, although I'm not not entirely sure I'm even targeting the right thing. This is my code -
@media only screen and (max-width:768x){.ProductItem-gallery {object-fit: contain
}}
Question
TPatts 0
Site URL: https://www.handmadecrafthouse.co.uk/shop/river-frost-print
Hi, I hope someone can help me!
I sell photography prints and it is important for my customers to be able to see the whole of the image that they will be buying. However, if they try to view my products on their mobile device then they will only see a thin slice of the actual image. I've attached images of how it should look (the wide image) and how it actually looks on mobile (the thinner one).
I'm trying to fix this with CSS and the media-screen query - I've tried content-fit rule but that doesn't seem to be working on it, although I'm not not entirely sure I'm even targeting the right thing. This is my code -
Many thanks in advance
Tim
Link to post
Top Posters For This Question
2
2
2
Popular Days
Feb 13
3
Aug 30
2
Sep 4
1
Top Posters For This Question
TPatts 2 posts
tuanphan 2 posts
Aerdon 2 posts
Popular Days
Feb 13 2020
3 posts
Aug 30 2020
2 posts
Sep 4 2020
1 post
Posted Images
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment