How to vertically center a div for all browsers? December 25, 2017 | Md. Shahidul Islam


Notice: A non well formed numeric value encountered in /home/flexwebc/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/flexwebc/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /home/flexwebc/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /home/flexwebc/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Below is the best all-around solution I have found. Tested and working for all browser.

HTML

CSS