I am trying to nest a div tag and set margin-top
so that it sets the distance from the top of the inner div to the top of the outer element. However, when try the code below, there is no margin between the top of the nested element, rather the margin applies to the top of the outer element.
.header {
width: 100%;
height: 110px;
text-align: center;
}
.title {
margin-top: 25px;
font-size: 30px;
}
<div class="header">
<div class="title">Title</div>
</div>