How do I vertically center <p> in a <div> with fixed height?
Inactive Tutor
answered 09/20/19
The easiest way would be displaying your div as flex and then aligning and justifying accordingly.
div {
height: 200px;
display: flex;
align-items: center;
justify-content: center;
}
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.