how to verticaly center p inside div code example Example: vertical align h1 inside div h1 { line-height: 100px; /*size of parent div*/ }