If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
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.
![[del.icio.us]](http://adamteece.com/blog/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://adamteece.com/blog/wp-content/plugins/bookmarkify/digg.png)
![[Google]](http://adamteece.com/blog/wp-content/plugins/bookmarkify/google.png)
![[StumbleUpon]](http://adamteece.com/blog/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Windows Live]](http://adamteece.com/blog/wp-content/plugins/bookmarkify/windowslive.png)
![[Yahoo!]](http://adamteece.com/blog/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://adamteece.com/blog/wp-content/plugins/bookmarkify/email.png)

Add New Comment
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks