Centering vertically using (only) CSS

You wrote on your resume that you have advanced knowledge on CSS. A recruiter calls you and asks one question: You said you have advanced knowledge on CSS… Prove it! How do you center elements vertically?

All hell breaks lose and you start asking yourself what have you done with your life…

Well, not anymore, the following code may help you:

That snippet may need a few tweeks, but it has worked for me so far.

Good luck!

The following two tabs change content below.
Breno RdV
Please allow me to introduce myself...I'm a former psychologist, with almost a decade worth of experience in Human Resources and People Management. Now a developer/software analyst working with PowerBuilder, C#, PowerShell and currently expanding to the world of Python, Xamarin, PHP Angular and (why not?) Unity.
Breno RdV

Latest posts by Breno RdV (see all)

Comments

comments

Posted in Dev, General KB and tagged , , , , , , , .