Adding a padding like that is not enough if you’re using responsive bootstrap. In this case when you resize your window you’ll get a gap between top of the page and navbar. A proper solution looks like this:
body {
padding-top: 60px;
}
@media (max-width: 979px) {
body {
padding-top: 0px;
}
}