How to Center text in a htlm box?

  • 1
  • Question
  • Updated 8 years ago
  • Answered
How would i centre the txt on this box any help would be great and please tell me where to add thanks guys.

(div style="border: 10px outset ;"-font size="5" face="Arial" color="SteelBlue>Youtube Video For Heavy Rain<br)
Photo of Reader

Reader

  • 52 Posts
  • 0 Reply Likes
  • happy

Posted 8 years ago

  • 1
Photo of smithy

smithy

  • 1222 Posts
  • 28 Reply Likes
hi reader,

u can put <!-- <center> at the begining of the code and </center> at the end -->

i hope this helps.

PS: leave out <!-- and -->. they are there to stop the forum from reading the code.
Photo of Tyler

Tyler

  • 63 Posts
  • 1 Reply Like
Yes, you could use <!-- <center> </center> -->. but leave out the the <!-- -->
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hello,

The way to center code would be to put < center> at the beginning of the code piece and at the end.

I hope this will help!

Emmy
Photo of Reader

Reader

  • 52 Posts
  • 0 Reply Likes
Thank you all so much, You have all solved this problem i have been having.