Can't seem to figure out why my text is not vertically aligning in the div. Here's the code I have:
<div class="container">
<p>Hello world</p>
</div>
Accompanied by the following CSS:
.container{
width: 100%;
height: 50px;
background-color: lightblue;
vertical-align: middle; /* Why isn't this working? */
}
I must be overlooking something or missing a key concept here. Can anyone help point me in the right direction?
Thanks!