Once again I’m having issues centering divs…
http://www.srcf.ucam.org/~sas98/project.php
How would I go about centering everything in #main?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To center
<div class="main">(and it is aclass– that means it’s.main, not#main– your HTML and CSS do not agree with each other on this point):margin: 0 auto; width: 1020pxto.main.1020pxis the right number to use here.width: 100%frombody, or your centering will not be precisely correct.overflow: hiddenfrombody, or scrolling is impossible on your page.Lastly, add a proper doctype as the very first line, or your page is in Quirks Mode and you’ll in particular have big problems with Internet Explorer:
I’m not sure what your footer is supposed to be doing.