oceans Posted May 10, 2007 Share Posted May 10, 2007 Friends, I have made a page with small width so that a smaller screen can show the whole contant, now the issue is the page get left oriented if I view in larger screen. How can I get it to be center screened. thanks. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted May 10, 2007 Share Posted May 10, 2007 if you have set the width of an element (and its parents) then use margin: 0 auto; in you css. so eg.. html { width: 100%; } body { width: 240px; margin: 0 auto; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.