Mobile Image Resizing
-
I have been struggling with figuring this one out for awhile. My website currently uses the virtue shortcode for columns four across on both fullwidth pages and blog style pages with sidebar.
On fullwidth pages I am using 200px square images while 150px square seems to be the best image size that works with sidebar pages. I am satisfied with how my images look on desktop but not on mobile.
Everything else is responsive and fits to each edge while the images stay at 200px and 150px and are too small to see very well. They are also no longer four across but one across in a long vertical line.
I do realize that my specified width and height values are causing this and I have experimented with using auto and 100% values. This fixes the images on mobile but wrecks them on desktop.
I thought there might be a combination of values that preserves how my images look on desktop while also resizing them to fit the screen on mobile but now I am not so sure. This was while editing the css for each image. Shouldn’t auto or 100% fit to each column width?
Now I am wondering if there is some kind of code I can add to advanced settings inside theme options that overrides the width and height all at once for mobile ONLY to be auto or 100%. Awhile back I received a code here that resizes the header logo text for mobile only so something like this does not seem completely impossible.
It would be really great if I could have some help with this!
- The topic ‘Mobile Image Resizing’ is closed to new replies.