[Answered] Fully Centering Containers
Ok, I know there are a lot of pages on the internet that tell you how to do this but they don't really seem to work for me.
I'm trying to create a container div that is completely centered in my page. That means, vertically and horizontally. Horizontally is not my problem (margin: auto) but I can't seem to get the vertical to work. The container is 728 wide and 400 tall. It's overflow is set to auto. The body has a background image. Does anybody have any suggestions for my setting to work on most resolutions (I'm looking to at least cover 1024x768 and 1200x800). Thanks in advance.
|