We have card with all CSS centering options. You probably want to head over there and get an overview over what techniques are available for your use case and browser requirements.
See attached link. The gist is:
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
Works in all web browsers and IE9+.
Posted by Henning Koch to makandra dev (2014-07-31 12:10)