--- id: bad87fee1348bd8acde08812 title: Center Text with Bootstrap challengeType: 0 --- ## Description
Now that we're using Bootstrap, we can center our heading element to make it look better. All we need to do is add the class text-center to our h2 element. Remember that you can add several classes to the same element by separating each of them with a space, like this: <h2 class="red-text text-center">your text</h2>
## Instructions
## Tests
```yml tests: - text: Your h2 element should be centered by applying the class text-center testString: assert($("h2").hasClass("text-center"), 'Your h2 element should be centered by applying the class text-center'); - text: Your h2 element should still have the class red-text testString: assert($("h2").hasClass("red-text"), 'Your h2 element should still have the class red-text'); ```
## Challenge Seed
```html

CatPhotoApp

Click here for cat photos.

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

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
```
## Solution
```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
```