I just took over a new project. The guy before me coded a lot of:
div#headertop {
margin: 0 auto;
}
Is this really needed or is this the default anyway?
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.
All current browsers have
margin: 0as the default margin fordivelements.margin: 0 autois not the same thing — if the div has a fixed width,margin: 0 autocreates adivthat is horizontally centered in its container.