I am working with a panel-footer in Bootstrap. I successfully centered the text inside using the text-align property in the css and also managed to center it vertically (all within the css). Here is the snippet of the css code:
.panel-footer{
padding: 0 15px;
height: 80px;
line-height: 80px;
text-align: center;
color: #777;
border: 1px solid;
border-color: #e7e7e7;
background-color: #FFFFFF;
}
Now, here's how it looks like in the html page:
<div class="panel-footer">
Title and text - More text - Tel. +00 0000 00000 Fax. 0000 000 000 - <a href="privacy.php"><u>Privacy Policy</u></a> - <a href="cookie.php"><u>Cookie Policy</u></a>
</div>
However, when resizing the page, the text jumps around. Upon investigation, I found that the vertical alignment issue stems from this particular part of the css code:
line-height: 80px;
Are there any alternative methods to achieve vertical alignment for the text?