-2

I am using bootstrap CSS in rails app. Images are displayed with right sizes(configured in CSS or code) but in IE They are displayed in original size.

Tested on IE8 Bootstrap version - 2.3

Shim:

<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

HTML:

<div class="row bottom">
  <div class="container">
    <div class="toptext3 pull-left">
      Designed By 
      <%=link_to "Exaltech Solutions Pvt. Ltd.", "http://www.exaltech.co.in" , target: "_blank"%>
     </div>
     <div class="toptext2 pull-right">
       Follow Us on:
       <%= link_to image_tag("Facebook.png", size:'30x30'),"https://www.facebook.com/computerzcom", target: "_blank" %>
       <%= link_to image_tag("Twitter.png", size:'30x30'), "https://twitter.com/computerzcom", target: "_blank" %>
       <%= link_to image_tag("ebay.png", size: '30x60'), "http://www.ebay.co.uk/sch/computerzhh/m.html?_nkw=&_armrs=1&_from=&_ipg=&_trksid=p3686", target: "_blank" %>&nbsp;
       <dfn><a href="#myModal"  data-toggle="modal">Testimonial</a></dfn>&nbsp;&nbsp;
       <dfn><a href="#myModal2"  data-toggle="modal">Terms</a></dfn>&nbsp;&nbsp;
       Computerz.com &#169; 2013
    </div> 
  </div>
</div>

I don't have anything relevant in CSS related to this part and it is too long so I am not putting it over here. In this ebay icon is coming huge(of its original size) instead of small icon.

Apologies for not adding code before. Thanks for correcting me.

Matenia Rossides
  • 1,406
  • 9
  • 35
Deep Nishad
  • 181
  • 1
  • 2
  • 7

1 Answers1

0

I had many images which were distorted and were displayed in original size in IE instead of size which I gave in ruby code.

Workaround - I resized all images to sizes they were needed in photoshop and then used them as assets.

Deep Nishad
  • 181
  • 1
  • 2
  • 7