Cross-Browser Auto Vertical/Horizontal Centering (Chrome & Forms Compatible)

/ Published in: CSS
Save to your folder(s)

A way to do 100% DIVs that adjust to content and center themselves both vertically and horizontally automatically. Tested for all browsers at 1920X1080 resolution. The 96% body height fixes Firefox and IE scrollbars that appear without reason and might need to be adjusted for smaller or larger windows.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.