.form { width: 400px; margin-left: 15%; //margin-right: auto; margin-top: 0px; padding: 10px; border: 1px dotted #b2c7e7; background-color: #EEEEEE; } .subform { width: 250px; margin: 0px; padding: 0px; border: 0px solid black; background-color: #EEEEEE; } h2 { width: 200px; margin-top: 20px; margin-bottom: 0px; margin-left: 15%; border-top: 1px dotted #b2c7e7; border-left: 1px dotted #b2c7e7; border-right: 1px dotted #b2c7e7; background-color: #FFFFFF; } body { background-color: #BBBBBB; }