freeCodeCamp Challenge Guide: Center Text with Bootstrap

freeCodeCamp Challenge Guide: Center Text with Bootstrap
0

#1

Now that we’re using Bootstrap, we can center our heading elements to make them look better. All we need to do is add the class text-center to our h1 and h2 elements.

Remember that you can add several classes to the same element by separating each of them with a space, like this:

<h2 class="text-red text-center">your text</h2>

#2

I still did that, <h2 class=“red-text” “text-center”>CatPhotoApp and it doesn’t center the text. What am i doing wrong? Thanks!!


#3

I figured it out, I was adding an extra pair of " " to my main class when i didnt need too.