I'm trying to make a footer for my website but the text inside the footer is displaying half in and half out of the footer div. I attempted to correct it using all the methods suggested in How do I vertically center text with CSS? and searched other ideas on the internet but none worked (unless I messed up applying them to my code). Here's my code. JSFiddle: http://jsfiddle.net/xyqgpr14/2/
Footer html
<nav class="navbar navbar-default navbar-bottom" role="navigation">
<div class="container">
<h1>Footer</h1>
</div>
</nav>
Style CSS:
.navbar-bottom {
background-color: #222;
border-top: 2px solid #000;
height: 50px;
color: #777;
text-align: center;
}