Possible Duplicate:
How is this put in the center using CSS?
I have tried so hard to put things in the center in CSS but I just dont get it!
I dont want to use <center></center>
So how else is it done?
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.
Probably something like this:
References:
Google Chrome stylesheet: http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/css/html.css
Firefox stylesheet: http://mxr.mozilla.org/mozilla-central/source/layout/style/html.css
Why not to use the
<center>tagAs a presentational tag, it makes very little sense to have to do something like:
Presentation should always be delegated to CSS when possible (i.e. almost always).
There are a variety of ways to “center” different things in different ways, but this should emulate the
<center>tags behavior.