---
id: bad87fee1348bd9acde08812
title: Haz que las imágenes se adapten a dispositivos móviles
challengeType: 0
forumTopicId: 18232
dashedName: make-images-mobile-responsive
---
# --description--
Primero, agrega una nueva imagen debajo de la existente. Establece su atributo `src` a `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`.
Sería genial si esta imagen pudiera tener exactamente el ancho de la pantalla de nuestro teléfono.
Afortunadamente, con Bootstrap, todo lo que necesitamos hacer es agregar la clase `img-responsive` a nuestra imagen. Hazlo, y la imagen debería caber perfectamente en el ancho de tu página.
# --hints--
Debes tener un total de dos imágenes.
```js
assert($('img').length === 2);
```
Tu nueva imagen debe estar debajo de la anterior y tener la clase `img-responsive`.
```js
assert($('img:eq(1)').hasClass('img-responsive'));
```
Tu nueva imagen no debe tener la clase `smaller-image`.
```js
assert(!$('img:eq(1)').hasClass('smaller-image'));
```
Tu nueva imagen debe tener el atributo `src` con el valor `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`.
```js
assert($('img:eq(1)').attr('src') === 'https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg');
```
Tu nuevo elemento `img` debe tener etiqueta de cierre.
```js
assert(
code.match(//g).length === 2 &&
code.match(/
Click here for cat photos.
Things cats love:
Top 3 things cats hate:
Click here for cat photos.
Things cats love:
Top 3 things cats hate: