Click to See Complete Forum and Search --> : how to align a page centered in a browser (IE and Netscape)


jawwadalam
07-22-2003, 03:59 PM
What do I want .. is

to arrange a page with HTML coding that if it opens either in IE or in Netscape, it should be aligned as whole in the center of the broswer regardless of the resolution of user's computer.

Thanks for your kind consideration..

I'll be hoping to have the positive response...

I am really new to html, so kindly reply to my message as you gonna teach a newbie..

Thanks again

Jawwad Alam

pyro
07-22-2003, 04:08 PM
Try something like this:

<div style="border: 1px solid; width: 400px; margin:auto; text-align: left;">test</div>


For that to work in IE, you will also have to make sure you use a valid doctype, which can be found at http://www.alistapart.com/stories/doctype/