Answer the question
In order to leave comments, you need to log in
How to remove padding at the top (Bootstrap)?
I practice layout using Bootstrap, I created 2 columns, but the second one has an indent from above, how to remove it?
<header>
<div class="container-fluid">
<div class="row">
<div class="col-md-1">
<img src="img/logo.png" height="101" width="141" alt="logo">
</div>
<div class="col-md-4 header">
<h1><span style="color: #5095c2;">Лучшие прогнозы</span>
от лучших прогнозистов</h1>
</div>
</div>
</div>
</header>
Answer the question
In order to leave comments, you need to log in
write
h1{
line-height: 54px;
}
since h1's font-size is 54px and body sets its padding to 1.6em, 54px*1.6=86.4px
that's where your padding comes from
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question