--- id: bad87fee1348bd8acde08812 title: Centrar texto con Bootstrap challengeType: 0 forumTopicId: 16771 dashedName: center-text-with-bootstrap --- # --description-- Ahora que estamos usando Bootstrap, podemos centrar nuestro encabezado para que luzca mejor. Lo Ășnico que necesitamos hacer es agregar la clase `text-center` a nuestro elemento `h2`. Recuerda que puedes agregar varias clases al mismo elemento separando cada una de ellas con un espacio, de la siguiente manera: ```html

your text

``` # --hints-- Tu elemento `h2` debe estar centrado al aplicar la clase `text-center` ```js assert($('h2').hasClass('text-center')); ``` Tu elemento `h2` debe conservar la clase `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
```