MENU

Pure CSS3 News Ticker

Log in/Sign up Screen Animation

October 1, 2015 Comments (0) Views: 1638 Coding

The Simplest Way To Center Elements Vertically And Horizontally

Flexbox is a relatively new addition to the CSS world and we keep finding more and more excellent applications for it. We can even solve the age-old problem with centering an element both vertically and horizontally with CSS. It is easier than you can imagine – it is only three lines of code, doesn’t require you to specify the size of the centered element and is responsive-friendly.

This technique works in all modern browsers – IE10+, Chrome, Firefox and Safari (with the -webkit- prefix).

View Article Here

Tags: #, #, #, #, #, #, #, #, #

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.