I always remember when i started learning to code it was always a struggle for me when it came to perfectly aligning items in the centre of their parent, as the years have gone by this has got progressively easier. In today's post we are going to run through the five main methods used from past to present to vertically center elements within their parent.
The Table Method
The Position Relative/Absolute Method
The Flexbox Method (Start of the Good Stuff)
The Grid Method
The Margin Method (With CSS Grid)
So there we have it, vertically aligning items through the years, hope you have enjoyed this post please check back for more coding/oxygen/design tutorials.