View Single Post
Old 06-05-2009, 10:55 PM  
PornMD
Mainstream Businessman
 
PornMD's Avatar
 
Industry Role:
Join Date: Jan 2007
Location: San Diego
Posts: 9,291
Quote:
Originally Posted by kenny View Post
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.
__________________
Want to crush it in mainstream with Facebook ads? Hit me up.
PornMD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote