Darshan Hiranandani - What's the best way to center elements vertically and horizontally in CSS?

Hi, I’m Dashan Hiranandani, Could you please share your preferred method for centering elements both vertically and horizontally in CSS? I’m interested in hearing different approaches from other group members.

Please stop posting these general topics. If you have a question about a specific fCC problem, or wish to answer people’s questions, please do!

If you post any more of these your account will be silenced.

Thanks