I have design a web page but it have diff- diff look in IE and Firfox.
It look center in IE and in firefox it display on right hand side.
What can i do that in all browser its look become same?
How correct the page alignment?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 30, 2010, 9:17 PM EDT
create a container div that can wrap all your page stuff.. inside the body tag.. now apply style on it like this:
#container
{
margin:0 auto;
width=976px;
}
------------
--------
It' take your web page to center of the screen and also it'll be browser independent...
you can change the width size. but do not remove it from the style of container.. its must attribute while using margin:0 auto;
Please mark "Do you like this post" if it helps you.