--- id: bad87fee1348bd8acde08812 title: Centralizar o texto com Bootstrap challengeType: 0 forumTopicId: 16771 dashedName: center-text-with-bootstrap --- # --description-- Agora que estamos usando Bootstrap, podemos centralizar nossos elementos de cabeçalho para deixá-los com melhor aparência. Tudo que precisamos fazer é adicionar a classe `text-center` ao nosso elemento `h2`. Lembre-se de que você pode adicionar várias classes ao mesmo elemento separando cada uma delas com um espaço, assim: ```html

your text

``` # --hints-- O elemento `h2` deve estar centralizado ao aplicar a classe `text-center` ```js assert($('h2').hasClass('text-center')); ``` O elemento `h2` ainda deve ter a classe `red-text` ```js assert($('h2').hasClass('red-text')); ``` # --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

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
```