Quote:
Originally Posted by kenny
The <center> tag is supported in all major browsers. However, it is deprecated and should be avoided!
http://www.w3schools.com/TAGS/tag_center.asp
Is there a good reason for this? Why is it suppose to be better to replace <center> with this mess"
#centered{
width: 800px; /* set to desired width in px or percent */
text-align: left; /* optionally you could use "justified" */
border: 0px; /* Changing this value will add lines around the centered area */
padding: 0;
margin: 0 auto;
}
|
Yea, I have to admit it seems pretty lame. I have been using divs to do it and it seems to satisfy XHTML, but still I know I'm not doing it fully right.