Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Responsive images css code should not break on IE. Current code breaks sizing in older XP machines running IE 8.
This code should do the fix:
img {
max-width: 100%;
height: auto;
max-width: none\0/; /* IE8 - IE9 overrides responsive images http://www.456bereastreet.com/archive/201202/using_max-width_on_images_can_make_them_disappear_in_ie8/ */
*max-width: none; /* IE7, removes max width */
*width: auto; /* IE7, removes responsive images */
}
Comments
Comment #1
jleiva CreditAttribution: jleiva commentedNice trick, thanks! The fix is part of the next version.
BTW, now you're a co-maintainer, so, fork and push ;)
Comment #2
jleiva CreditAttribution: jleiva commented