Centered Vertical and Horizontal

Re-size the page smaller and larger to see the vertical and horizontal effect. As you can see the element does not disappear off the top or the side of the screen unlike most other centering methods. Works in all versions of IE and most other modern browsers.

View Source to see the code

Go back to Vertical centering