fishcuisine Posted July 30, 2011 Report Posted July 30, 2011 Hello, Back again. Still having problems with centering my web pages… My HOME page is perfectly centered: Link: http://tokyo-chef-institute.com/ However, all my other pages are justified to the left: Link: http://tokyo-chef-institute.com/metropolistTokyo I used the following codes. ----------------------------- <body> <div style="margin: 0 auto; width: 900px;"> Note: set your width to whatever size your framework is. </div> </body> ----------------------------- Any ideas on why it’s not working? Regards rk
Andrea Posted July 30, 2011 Report Posted July 30, 2011 Why did you start using frames? That was a very bad idea.
Andrea Posted July 30, 2011 Report Posted July 30, 2011 Overall, I think your code is messier now than it used to be. The reason your index page centers is that is has a div="wrapper" around all the body contents that is centered by this CSS: #wrapper { width:1050px; margin:0 auto; } Your other pages are missing that wrapper division.
Andrea Posted July 31, 2011 Report Posted July 31, 2011 Also, the contact us link at the bottom of the Metropolis page is broken.
Guest jhjonsonsk Posted August 1, 2011 Report Posted August 1, 2011 (edited) Every web programmer knows that you can't code a commercial website for a specific browsers or user experience level, much less a screen resolution. Since you can't count on a user having the latest and greatest, you need to use the lowest common denominator of browsers resolution. In today's web world, 1024x768 is usually the lowest browser resolution coded for. Edited August 1, 2011 by Andrea Link Deleted - No Spam Please
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now