1.

Solve : How to center page when opened by a hi res browser?

Answer»

I am learning how to build a Web page using HTML. Although I can use a Web tool that ALLOWS me to set the properties to center, I do not know how to do this in HTML. I designed my screen for 800X600 which looks fine, but when viewed with a higher resolution the page the contents are on the left. Note: although I can use  “Site Builder” to correct this problem, I want to do it in a Text file in HTML code.You could wrap anything you want centred in a single DIV:<div align='center'>
 Blah blah
 </div>
Or you could use CSS: <###style>
body
{
   margin-left: auto;
   margin-right: auto;
}
<###/style>
(Remove the '###'.)  Not sure all browsers will correctly handle that CSS though.Thanks, Rob the   Blah blah   worked and was simple.Great.  JOB done.



Discussion

No Comment Found