Vertical Centering Example

Using “Ghost” Element

This technique uses a pseudo element to position an unknown, or dynamically changing, sized element.

Some text

But he stole up to us again, and suddenly clapping his hand on my shoulder, said—"Did ye see anything looking like men going towards that ship a while ago?"

This article takes this concept and applies it, along with the Justified text trick, to create a centered and responsive header.