Click here to Skip to main content
15,743,541 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing a web site in php according to a 800x600 screen resolution. But when I open this site on a computer which has a higher resolution than 800x600 my web page goes to left side and some empty space left on the right side. But I want that if my web page is being opened on a higher resolution, my web page should be centralized and the empty space should be divided on the left and right side accordingly.
can some one help me to achieve my target?
musefan 8-Apr-11 5:58am    
So you need to center align your content. Can you post your html for the first couple of elements/containers and also your CSS for those elements
rashidfarooq 11-Apr-11 1:55am    
thanks for answering but i have found the solution.

1 solution

Have you even tried to find[^] an answer on the web?

This[^] page shows some examples.
Share this answer
Sandeep Mewara 8-Apr-11 6:49am    
My 5!

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