W czym leży problem?
<html> <head> <link rel="stylesheet" href="main.css" type="text/css" /> </head> <body> <!-- formularz --> <form action="skrypt.php" form="POST"> Nauczyciel: <select name="nauczyciel"> </form> <!-- koniec formularza --> <!-- wczytanie screenshot'ów do boxów --> <div class="boxy"> </div> <!-- end --> </body> </html>
CSS:
html { background-color: #1c1c1c; } body { padding: 1em; width: 800px; height: 600px; background-color: #bce35f; top: 50px; position: relative; margin: 0 auto; border-radius: 5px 35px 5px; } .boxy { width: 800px; margin-left: -300px; /* połowa szerokości */ left: 50%; position:absolute; bottom: 0; } .box1 { width: 100px; height: 100px; background-color: #e0ff99; float: left; margin: 10px; } .box2 { width: 100px; height: 100px; background-color: #e0ff99; margin: 10px; float: left; } .box3 { width: 100px; height: 100px; background-color: #e0ff99; margin: 10px; float: left; } .box4 { width: 100px; height: 100px; background-color: #e0ff99; margin: 10px; float: left; } .box5 { width: 100px; height: 100px; background-color: #e0ff99; margin: 10px; float: left; }