[SOLVED] Can't center text on codepen. (I have been searching for the answer for an hour)

Code

<div>
  <div class=("container")>
    <h1 class=("text-Primary text-center")>Mexico</h1>
  <div>
</div>

This is the entirety of my code and all codepen does is display Mexico in black latter on the left side of the page.
I have bootstrap 3 loaded. I am on mac using safari if its a compatibility issue.

Are you using any HTML preprocessor on Codepen? Because…

…those parentheses shouldn’t be there.

Ughhhh!!!

I literally just discovered this and came here to mark it as solved. I feel so stupid haha.

I’ve been at the airport for 4 hours now. I guess its time for a break.

Thank you so much.

1 Like