My attempt to vertically align a centered inner DIV is not working as expected...
What could be causing this issue?
CSS Code:
#page_bar
{
width: 100%;
height: 30px;
background-color: white
}
.page_bar
{
width: 800px;
height: 30px;
display: table-cell;
vertical-align: middle
}
HTML Code:
<div id="page_bar">
<div class="page_bar">
Mapa Strony
</div>
</div>
EDIT: I am aiming to center the inner DIV itself, not just the text inside of it...
EDIT: Take a look at: - the silver area should be centered, meaning the inner div needs to be centered, not just the text within it.