How To Center Your Stuff In CSS

It’s the seemingly simplest yet most difficult to wrangle concept in styling. How to center your divs, headers, text, whathaveyou. What should be a no-brainer exercise for most developers usually turns out to be a surprisingly frustrating endeavor. In this article I will try to create a simple to read cheatsheet for centering in CSS so that you may never have to deal with the frustration of uncentered items again.