Parašė Boxster· 2013 Lie. 21 16:07:45
#1
Sveiki, kaip padaryti, kad panelėje atsiradus daugiau teksto ji temtusi žemyn.
Index.php
<div class='prisijungimas'>
<div class='loginas'>
<tr>
<td colspan='2'><input type='text' name='user_name' class='login_input' value=' Vartotojo vardas'></td>
</tr>
<br>
<div style="margin-top: 8px;"></div>
<tr>
<td colspan='2'><input type='text' name='user_pass' class='login_input' value=' Slaptažodis'></td>
</tr>
<td align='right'><input type='submit' name='login' value='' href='login.php' class='login_button' /></td>
<div style=' font-family: Arial; font-size: 11px;color: #5d5d5d; text-align: center;'><br>Registracija || Pamiršote slaptažodį?</div>
</div>
</div>
style.css
.main .panels {
float: right;
margin-right: 10px;
margin-top: -8px;
}
.main .panels .prisijungimas {
background: url('images/prisijung.png');
width: 312px;
height: 228px;
padding:0px;
}
.main .panels .loginas {
padding-top:75px;
}
.main .panels .prisijungimas .login_input {
background-image: url(images/login.png);
width: 238px;
height: 30px;
font-family: Arial;
font-size: 12px;
color: #cbcbcb;
border: 0px;
margin-left: 35px;
text-align: left;
}
.main .panels .prisijungimas .login_button {
background-image: url(images/prisijungti.png);
width: 90px;
margin-top: 5px;
margin-left: 184px;
height: 25px;
border: 0px;
}