body{ margin: 0; padding: 0; overflow: hidden; } #dis{ background: url('../img/img1.jpg') fixed center; background-repeat: no-repeat; background-size: cover; position: absolute; width: 100%; min-height: 650px; top:0; left:0; } h1{ text-align: center; font-family: georgia; color: brown; font-weight: bold; padding-top: 3%; font-family: georgia; } #div1{ position: absolute; width:25%; height: 500px; margin-top: 5%; margin-left: 15%; background:rgba(12, 12, 12, 0.850); border-radius:35px; box-shadow: 0 0 30px rgb(255, 255, 255); } #div2{ position: absolute; width:25%; height: 450px; margin-top: 5%; margin-left: 50%; background:rgba(12, 12, 12, 0.857); border-radius:35px; box-shadow: 0 0 30px rgb(255, 255, 255); } p{ position: absolute; margin-left:2%; margin-top: -7%; font-size: 18px; color: royalblue; font-family: georgia; } .textbox{ padding-left:15%; width: 90%; height: 40px; display: flex; margin: 30px; } .textbox2{ position: relative; padding-left:15%; width: 90%; height: 40px; right: 6%; display: flex; margin: 50px; } #button{ position: absolute; width: 60%; height: 40px; border-radius: 39px; color: azure; background: brown; font-size: 18px; font-weight: bold; margin-left: 20%; } input{ height: 35px; }