Log in

View Full Version : page alignment



gurmeet
09-22-2010, 10:12 AM
hello friends...
i am making a web site, it has fixed lay out, i want to know how to keep page in the middle of the screen?

i mean when i surf on wide screen monitors, the must be seen in the middle of the screen, but my page is being displayed on left corner...?


is there i need to define any stle so that my page can be displayed in the middle?
c this link
http://in.yahoo.com/?p=us
i want such alignment of the page?

gurmeet
09-22-2010, 10:15 AM
is there any CSS Property that can align a DIV into center, instead the contents of a div?

azoomer
09-22-2010, 10:35 AM
try something like this

#centerdiv {
margin:0 auto;
}
give the div you want to center the id="centerdiv"
If it doesn't work for you then post a link to your page so we can take a look at it.

gurmeet
09-22-2010, 12:15 PM
it works


thanx

gurmeet
09-22-2010, 12:42 PM
but dont work in IE?