Pop n' Plop

A centering technique for overlaying other content.

See the full article for many more details about this technique and when it's efficient.

Full article · Video on YouTube · Source on Github

<article>
  <h1 class="pop-n-plop">Pop n' Plop</h1>
</article>

        article {
  position: relative;
}

.pop-n-plop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}