A way to vertically center content on a webpage using the css table property. html { height: 100%; } body { display: table; width: 100%; height: 100%; } #childtobody { display: table-cell; vertical-align: middle; text-align: center; }
A way to vertically center content on a webpage using the css table property. html { height: 100%; } body { display: table; width: 100%; height: 100%; } #childtobody { display: table-cell; vertical-align: middle; text-align: center; }