html, body { height: 100%; } body { background-color:#ffffff; } .displaynone { display:none; } #wrap { min-height: 100%; height: auto; /* Negative indent footer by its height */ margin: 0 auto -60px; /* Pad bottom by footer height */ padding: 0 0 60px; } #footer { height: 60px; background-color: #f5f5f5; padding-top: 20px; }