Mam problem, aczkolwiek. W momencie, gdy do kodu dodam jakiś prosty formularz to znikają mi wszystkie divy.
W czym leży problem?
<link rel="stylesheet" href="main.css" type="text/css" /> <!-- formularz -->
<form action="skrypt.php" form="POST"> Imie:
<input type="text" name="imie"><br/> Nazwisko:
<input type="text" name="nazwisko"><br/> Email:
<input type="text" name="email"><br/> Wiadomość:
<input type="text" name="wiadomosc"><br/> Nauczyciel:
<select name="nauczyciel"> <!-- koniec formularza -->
<!-- wczytanie screenshot'ów do boxów -->
<!-- end -->
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;
}
Ten post edytował Mades 11.10.2013, 20:01:19