Odd issue with images not matching div width
-
The following sites are running the same basic theme with some minor edits to the PHP and CSS, both sites have WP Retina 2x installed, but only the first has it enabled.
https://matthewhappen.com/plugin-enabled/
https://rachelhappen.com/plugin-disabled/When the plugin is disabled, you can resize the window and the image will always scale to fill the width of the div it is in. When the plugin is enabled, the image will only scale down, not up.
So… if you load both links in a 1000px+ wide window, you can make the window smaller and the image scales just fine.
But, if you load both links in a 400px wide window, and then you make that window bigger the @2x image will not scale up.
This image shows what the page looks like when it is loaded in a medium sized window (the image and text are the same width): https://matthewhappen.com/wp-content/uploads/loaded-medium-940×457.png
This image shows what the page looks like when it is loaded in a medium sized window and that window is then resized to a narrower window (the image and text are the same width): https://matthewhappen.com/wp-content/uploads/loaded-medium-window-made-smaller-940×725.png
This image shows what the page looks like when it is loaded in a small sized window (the image and text are the same width): https://matthewhappen.com/wp-content/uploads/loaded-small-940×789.png
This image shows what the page looks like when it is loaded in a small window and is then resized to be a medium sized window (the image has not scaled up and is narrower than the width of the text): https://matthewhappen.com/wp-content/uploads/loaded-small-window-made-wider-940×458.png
- The topic ‘Odd issue with images not matching div width’ is closed to new replies.