This is loosely taken from this page:
Here is the html structure:
<div class="container"> <p> Your content here. </p> </div>
Here’s the css:
Must have a height, be set to be a table and have the vertical-align set.
.container { height:75px; display: table; vertical-align:middle; } .container p { display:table-cell; vertical-align: middle; }
Revisions
- December 17, 2012 @ 23:21:39 [Current Revision] by PeterLugg
- December 17, 2012 @ 23:17:35 by PeterLugg
No comments yet.