A CodePen by Boyan Yordanov. Center and element vertically and / or horizontally - An solution for centering an element vertically and horizontally in it's parent shown to me by a friend, and extended to center it also vertically only.