TJMAudio Posted May 10, 2008 Share Posted May 10, 2008 My website is optimized to display at around 1050px width, give or take 50px. The problem is, it is currently stretching completely out, no matter the resolution. How would I make it so if it is 1050px, it will then center the site? Quote Link to comment https://forums.phpfreaks.com/topic/104951-aligning-full-site-in-center-if-maximum-width-is-met/ Share on other sites More sharing options...
peranha Posted May 10, 2008 Share Posted May 10, 2008 This is what I use not sure if it is the correct way, but it validates with w3.org width: 1050px; margin-left: auto; margin-right: auto; Quote Link to comment https://forums.phpfreaks.com/topic/104951-aligning-full-site-in-center-if-maximum-width-is-met/#findComment-537215 Share on other sites More sharing options...
ToonMariner Posted May 12, 2008 Share Posted May 12, 2008 max-width: 1050px; Quote Link to comment https://forums.phpfreaks.com/topic/104951-aligning-full-site-in-center-if-maximum-width-is-met/#findComment-538927 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.