0

First of all let see this Fiddle by resizing in firefox and chrome,

I also tried this Why do Firefox and Opera ignore max-width inside of display: table-cell? but no sucess.

table img { display:block }
Community
  • 1
  • 1
Vikas Ghodke
  • 6,602
  • 5
  • 27
  • 38

1 Answers1

4

Check this demo jsfiddle

You use max-width, but actually It's meaning original image size. that's why not working on firefox. you should modify max-width to width and assign 100% to work on all browser.

CSS

 img {
    width: 100%;  // before: max-width: 100%;
    display: block;
}

Hope this help you!

Jaykumar Patel
  • 26,836
  • 12
  • 74
  • 76