Click here to Skip to main content
15,940,246 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anybody solve my this below mentioned problem?

I build One web page, I have problem of "page alignment".
When page is dispalyed, whole layout reside on left side of the screen.
While it should be on the center.

|@@@@@@.....|
|@@@@@@.....|
|@@@@@@.....|
|...........|
|...........|
|...........|

I want in below way , bcoz when page resize,content of whole page remains in the center of page.

|...@@@@@@...|
|...@@@@@@...|
|...@@@@@@...|
|............|
|............|
|............|


Thanks
Shahnawaz
Posted

Don't know what you had tried but using align="center" in the topmost div/table/panel tag should work.
 
Share this answer
 
There are a couple of ways you can do this, but the easiest is to do this:

<center>
your existing content goes here
</center>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900