In this article, Stephen Shaw introduces a technique for perfect horizontal and vertical centering in CSS, at any width or height. The techniques works with percentage-based width/height, min-/max- width, images, position: fixed and even variable content heights. This article was updated on January 31, 2019 to update the below provided information. The old information is not wrong, however is the
{{#tags}}- {{label}}
{{/tags}}