What kind of CSS styling can I add so that my header begins directly on the top of the page? For now there is always some space between the header and the page beginning.
<div class="page-header">
<h1>Title</h1>
</div>
What kind of CSS styling can I add so that my header begins directly on the top of the page? For now there is always some space between the header and the page beginning.
<div class="page-header">
<h1>Title</h1>
</div>
Try to add:
.page-header h1 {
margin-top: 0;
margin-bottom: 0;
}
<div class="page-header">
<h1>Title</h1>
</div>
This might work.
body {
margin: 0;
padding: 0;
}
<div class="page-header">
<h1>Title</h1>
</div>