How do you get the html to center?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
When I input the code it clings to the left, there must some magic button or code to center it? Thanks
Photo of Laura


  • 1 Post
  • 0 Reply Likes
  • unsure

Posted 9 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Laura

If you would like to center something, try wrapping your code with a center tag.

<center>YOUR CODE GOES HERE</center>

Please let us know if this doesn't work for you. If it doesn't, could you please post your site URL where you have the code implemented. Then, we could take a closer look at what's going on.
Photo of Caitlin Hecsh

Caitlin Hecsh

  • 40 Posts
  • 5 Reply Likes