form { display: inline-block; //Or display: inline; } input { padding: 12px 20px; margin: 8px 0; border: 1px solid #ccc; border-radius: 4px; background-color: #E6E6FA; color: black; } div { border-radius: 5px; background-color: #F0F8FF; padding: 20px; } footer { position: relative; height: 30px; width: 100%; background-color: #E6E6FA; } p.copyright { position: absolute; width: 100%; color: black; line-height: 5px; font-size: 15px; text-align: center; bottom:0; top:0; }