How can I limit the divs to fill the form in the right place?
.h1 { color: #868686; margin-left: 50px; } .a { max-width: 300px; width: 50%; color: green; margin-top: 50px; margin-left: 50px; font: 10pt Tahoma; } .underline { text-decoration: underline; } body { border-right: solid #b1cdff 28px; border-top: solid #b1cdff 28px; } .form { margin-bottom: 200px; width: 250px; padding: 10px; border: 2px solid red; margin-left: 581px; } <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1><span class="h1">Лабораторная работа №1</span></h1> <div class="a" <p>Главная :: <span class="underline">Задание на лабораторную работу</span></p> </div> <form> <div class="form"> <label for="login">Логин:</label> <input type='text' name='login'/> <br /> <label for="password">Пароль:</label> <input type='password' name='password' /> <br /> <input type='submit'value="Отослать данные"/> </div> </form> </body> </html> 

dispay: inlineas far as I can remember - ArchDemon 2:51 pm