Basically it makes the div behave like a table then sets the vertical alignment to middle.
#container
{
width: 100%; height: 100%; display: table;
}
#position
{
display: table-cell;
vertical-align: middle;
width: 100%;
text-align: center;
}
No comments:
Post a Comment