2

in the below page you will find an element

website

 <li role="presentation">
  <a href="#ragab" aria-controls="ragab" role="tab" data-toggle="tab">
   <img class="img-thumbnail" src="photos/clients/ragab.jpg" /> 

is out of the Row in firefox but inside the row in chrome ??

any idea why?

1 Answers1

0

Your <li> elements are display: table-cell (from Bootstrap).
Your <img> elements are max-width: 100% (from your style.css).
The w3.org spec states that max-width does not apply to inline elements, so you will get inconsistent behavior across browsers. See this answer: Why do Firefox and Opera ignore max-width inside of display: table-cell?
You can put width: 100% instead.

Community
  • 1
  • 1
Attila Szasz
  • 3,033
  • 3
  • 25
  • 39