I know this is a really really noobish thing, but I couldn’t, for the life of me, figure out how to get a couple of things centered on a website I was working on. I looked all through my copy of CSS: The Missing Manual, but it didn’t describe it anywhere. So I did some searching online and found an about.com page that said the easiest way to center something is to use margin: auto; This works great for all browsers except IE6 and below. For that I just gave the same div text-align: center; and everything was great. I don’t know why I didn’t figure it out before, but it really makes sense now. It is putting the same amount of margin on either side of it.
Pages
Archives
- March 2009
- September 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- June 2006
- May 2006
- April 2006
- January 2006