iGuest 3 Report post Posted July 20, 2007 Another way to center the div, is by placing it in <center> tags, and adding the following CSS:text-align: left; Share this post Link to post Share on other sites
TavoxPeru 0 Report post Posted July 21, 2007 Another way to center the div, is by placing it in <center> tags, and adding the following CSS:text-align: left;That's correct but the center tag is deprecated and must be avoided, instead to get the similar result you use margin:0 auto as posted in previous posts.Best regards, Share this post Link to post Share on other sites
MrSchpfmut 0 Report post Posted August 23, 2007 (edited) Good suggestions from all. Here's another method I personally use with a negative margin. (I like the math! ) Works in IE6/7, FF, & Opera #name {position: absolute; left: 50%;width: 600px; margin: 0 0 0 -300px;} You can use position: relative; if you are centering to a parent element, rather than the browser's window. Edited August 23, 2007 by MrSchpfmut (see edit history) Share this post Link to post Share on other sites
Halo 0 Report post Posted September 5, 2007 this was helpfulthanks guys... Share this post Link to post Share on other sites
heirufox 0 Report post Posted September 6, 2007 Someone posted about the tag <center>. This tag is depricated and is no longer a valid HTML tag (as stated by the W3C - World Wide Web Consortium). So, yes use what TavoxPeru said.Just thought I would let you know! Share this post Link to post Share on other sites