via http://css-tricks.com/centering-in-the-unknown/,
.timeblock {
height:36px;
display:table;
}
.timeblock p {
padding:0px;
margin:0px;
display:table-cell;
text-align:center;
vertical-align:middle;
}
worked pretty well for
<div class="timeblock"><p>Some stuff</p></div>
[Insert usual note about how CSS isn't great at some stuff that comes really easily with tables]
No comments:
Post a Comment