how to align a page centered in a browser (IE and Netscape)

liunx

Guest
What do I want .. is<br />
<br />
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.<br />
<br />
Thanks for your kind consideration..<br />
<br />
I'll be hoping to have the positive response... <br />
<br />
I am really new to html, so kindly reply to my message as you gonna teach a newbie..<br />
<br />
Thanks again<br />
<br />
Jawwad Alam<!--content-->Try something like this:<br />
<br />
<div style="border: 1px solid; width: 400px; margin:auto; text-align: left;">test</div><br />
<br />
<br />
For that to work in IE, you will also have to make sure you use a valid doctype, which can be found at <!-- m --><a class="postlink" href="http://www.alistapart.com/stories/doctype/">http://www.alistapart.com/stories/doctype/</a><!-- m --><!--content-->
 
Back
Top