Geeks With Blogs
Tim Huffam Dotting the I and crossing the T of I.T. May 2007 Entries
Centering div tags using CSS
As text-align doesn't work I use a simple work around: .mydiv{ width: 100%; left: 50%; } It's not perfect - but very simple and easy to understand - and you can modify it to suit. Seems to work ok in IE 6 & FF 2.0. Here's another method ( - but I found it not obvious/simple enough (expecially for others who may have to maintain the css down the track - KISS) HTH Tim ......

Posted On Tuesday, May 15, 2007 5:11 PM

Copyright © Tim Huffam | Powered by: