Forum Moderators: not2easy

Message Too Old, No Replies

Centering DIV with CSS

addendum

         

zachariah

5:11 pm on Jul 12, 2003 (gmt 0)

10+ Year Member



I was googling to find how to do just that and I found this post:
[webmasterworld.com...]

I wanted to add a better way I also found while googling, so I joined and tried but the thread is closed, so I am adding it here.

It is described here:
[wpdfd.com...]
and it doesn't bend CSS so much (making an object a table when it realy isn't, isn't in the spirit of CSS).

Hope this helps future googlers and forum members alike.

DrDoc

5:28 pm on Jul 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World! :)

I totally agree that it's "wrong" to make the page a table when it isn't. Also, the method used for centering horizontally (negative margin) works fine vertically as well.