E045 - Herst/bootlint-ng GitHub Wiki

Note: Below is the original page from the Bootlint documentation, some of the info here might not apply to Bootlint-NG!


E045

.img-responsive should only be used on <img>s

The .img-responsive class is only meant for use on <img> elements. Using it on other elements is nonsensical.

Wrong:

<div class="img-responsive">
  <img src="foo.jpg" />
</div>

Right:

<div>
  <img src="foo.jpg" class="img-responsive" />
</div>
⚠️ **GitHub.com Fallback** ⚠️