I have a strange question. I always want 50px padding white space, above my Header(H2) Title. Where I am having trouble is that, if there is no Header, then the white space above the header is collapsing. Is there a way to always keep 50px padding above the Header, even if the header is not present?
I tried adding padding-top: 50px on my myComponent class. But that didn't work because, that is adding extra white space above, when there is a header present.
<div class="myComponent">
<div class="myContainer">
<div id="head_Title" class="mainTitle">
<h2 class="titleName"> This is a Title</h2>
</div>
<div id="description" class="mainDescription"></div>
</div>
</div>