Jump to content

MrMKellow

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by MrMKellow

  1. Hi, Deanno0007. One way would be to use a small amount of inline styling (css) to center your page. Here is a small example:

    <!DOCTYPE html><html><head><title> Centering page using inline styling </title><style type = "text/css">html,body {  margin: 0px;  padding: 0px;}.center {  width: 800px;  padding: 0 auto;  margin: 0 auto;}</style></head><body><div class = "center"><div>	<p> Content here </p>  </div></div></body></html>

    This example creates a two margins of equal size centering the page. I hope this small example is adequate and helps you with your problem. Note: I'm not entirely sure how you're developing your site but using an extenal style sheet will be a great way to modify your sites positional and design easily. It makes your HTML documents much cleaner.

    • Like 1
×
×
  • Create New...