--- id: bad87fee1347bd9aedf08845 title: Ditch Custom CSS for Bootstrap challengeType: 0 forumTopicId: 17565 dashedName: ditch-custom-css-for-bootstrap --- # --description-- We can clean up our code and make our Cat Photo App look more conventional by using Bootstrap's built-in styles instead of the custom styles we created earlier. Don't worry - there will be plenty of time to customize our CSS later. Delete the `.red-text`, `p`, and `.smaller-image` CSS declarations from your `style` element so that the only declarations left in your `style` element are `h2` and `thick-green-border`. Then delete the `p` element that contains a dead link. Then remove the `red-text` class from your `h2` element and replace it with the `text-primary` Bootstrap class. Finally, remove the `smaller-image` class from your first `img` element and replace it with the `img-responsive` class. # --hints-- Your `h2` element should no longer have the class `red-text`. ```js assert(!$('h2').hasClass('red-text')); ``` Your `h2` element should now have the class `text-primary`. ```js assert($('h2').hasClass('text-primary')); ``` Your paragraph elements should no longer use the font `Monospace`. ```js assert( !$('p') .css('font-family') .match(/monospace/i) ); ``` The `smaller-image` class should be removed from your top image. ```js assert(!$('img').hasClass('smaller-image')); ``` You should add the `img-responsive` class to your top image. ```js assert($('.img-responsive').length > 1); ``` # --seed-- ## --seed-contents-- ```html

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
``` # --solutions-- ```html

CatPhotoApp

A cute orange cat lying on its back. Three kittens running towards the camera.

Things cats love:

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```