html - Remove the top margin of header in bootstrap -
html
<div class="container-fluid"> <div class="row"> <div class="page-header header_site"> <h1><font>abc company</font></h1> </div> </div> </div>
css code:
.header_site { background-color: darkblue; } font { color: white; margin: auto 160px auto 160px; }
i want remove top-margin marked in following figure.
give h1 , page header margin-top of 0 , make sure body doesn't have padding:
body { padding: 0; } .page-header, .page-header h1 {margin-top:0;}
if need h1
move down bit, give padding-top
Comments
Post a Comment