$('.img-responsive').wrap('<div style="display: table-cell" />').parent().wrap('<div style=" display: table;table-layout: fixed;width: 100%;" />');