/* In order to verticaly display some content with unknown height, you need two have two DOM elements, one parent and one child, and Voilà!*/
.table_parent {
display: table;
width: 100%;
height: 100%;
text-align: center;
}
.table_child {
display: table-cell;
vertical-align: middle;
}
Easy vertical-align text or images thanks to this trick.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.