Images stretched on mobile
-
Site: irisofstyle.com
I have 6 Instagram images displayed at the bottom of the site. Normally, they look fine on mobile. But, If I visit the site through a link [For example: Twitter (https://twitter.com/irisofstyle) or Facebook (https://www.facebook.com/irisofstyle/)], the images are stretched.
Any ideas?
I’m using the following Custom CSS and Custom JS within the plugin:
@media(max-width: 667px){
#sb_instagram #sbi_images .sbi_item{ display: none; }
#sb_instagram #sbi_images .sbi_item:nth-child(-n+6){ display: inline-block; }
#sb_instagram #sbi_images .sbi_item { width: 33% !important; }
}$(window).resize(function(){
setTimeout(function(){
$(‘#sb_instagram .sbi_photo’).each(function(){
$(this).css(‘height’, $(this).innerWidth() );
});
}, 501);
});Thank you
- The topic ‘Images stretched on mobile’ is closed to new replies.