--- id: bad87fee1348bd8acde08812 title: Centrare il testo con Bootstrap challengeType: 0 forumTopicId: 16771 dashedName: center-text-with-bootstrap --- # --description-- Ora che stiamo usando Bootstrap, possiamo centrare il nostro elemento di intestazione per farlo apparire meglio. Tutto quello che dobbiamo fare è aggiungere la classe `text-center` al nostro elemento `h2`. Ricorda che puoi aggiungere più classi allo stesso elemento separando ciascuna di esse con uno spazio, in questo modo: ```html

your text

``` # --hints-- Il tuo elemento `h2` dovrebbe essere centrato applicando la classe `text-center` ```js assert($('h2').hasClass('text-center')); ``` Il tuo elemento `h2` dovrebbe appartenere ancora alla 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
```