Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Responsive Images Image Delivery with Srcset and Sizes Using Srcset

Manea Alexandru
Manea Alexandru
9,174 Points

Problem in Microsoft Edge

Hello, my banner look fine in google chrome, but in microsoft edge hawe a problems...

<script src="js/picturefill.min.js" async></script> </head> <body>

  <div class="wrapper">
  <img
   srcset="img/banner-large.jpg 2048w,
           img/banner-medium.jpg 1400w,
           img/banner-small.jpg 800w"
   src="img/banner-large.jpg"
   alt="Descrierea bannerului"
   class="banner-image" 
   />

1 Answer

Rune Andreas Nielsen
Rune Andreas Nielsen
5,354 Points

Hi, Manea.

What styling do you have applied on the 'banner-image' css class?

Manea Alexandru
Manea Alexandru
9,174 Points

Hi, thank you for answer. In css i hawe in Mobile-First Approach: .banner-image { min-width: 100%; }

In media query: @media screen and (min-width: 1024px) { .banner-image { margin: 2em auto; border-radius: 3px; box-shadow: 0px 1px 0px rgba(52, 73, 94, 0.2); } }

In edge, my banner look like this http://imgur.com/a/54nI3

Update:Strange, I try now again to give refresh in Edge, without doing any change, and works fine..