0

I was tinkering around with making images responsive, however, I'm not seeing any change in my images, despite the fact that I've given them a predetermined vw which makes me think I have missed a step somewhere.

I currently have my imaged listed like so:

<img src="images/icon_1000x_large.jpg" alt="largeCodeIcon" srcset="images/icon_1000x_large.jpg 1000w, images/icon_500x_medium.jpg 500w, images/icon_200x_small.jpg 200w"
sizes="(min-width: 273px) 20vw, (min-width: 350px) 50vw, 100vw" >

Now in theory, at 273px the image should be 20vw and at 350, 50vw, but there is absolutely no change.

Can anyone help?

Theodore Steiner
  • 1,553
  • 2
  • 23
  • 34

1 Answers1

0

After reading a little about this. I noticed others are using max-width not min-width. You may have multiple rules applying simultaneously using min-width. I'm not certain but these rules may not cascade, so the first matching rule could will win. Alternately you may be able to reverse the order and solve the problem that way.

dlaub3
  • 1,107
  • 9
  • 20