.footer { padding: 10px; width: 100%; height: 150px; background-color: #f5f5f5; } #main_contain { display: table; width: 100%; height: 100%; }