Ciao.
Qualcuno mi sa spiegare il diverso trattamento
che viene fatto riguardo a width tra input di tipo
text e input di tipo submit ???
Allego un semplice esempio:
Codice PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<
html>
<
head>
<
title></title>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<
style type="text/css">
* {
    
margin:0px;
    
padding:0px
}
body 
    
text-align:center;
}
/* FORM */
form {
    
width:550px;
    
margin0px auto;
     
text-align:left;
}
form label {
    
float:left;
    
width:250px;
    
margin-right:5px;
    
line-height:20px
       
text-align:right;
}
form input {
    
width:250px;
}
form input#bottom {
    
width:250px
}
br.frmClear 
    
clear:both
}
</
style>
</
head>
<
body>
<
form name="frmRegister" action="" method="post">
<
label>Username : </label>
<
input type="text" name="username" value="" maxlength="32" /><br class="frmClear" />
<
label>Password : </label>
<
input type="password" name="password" value="" maxlength="32" /><br class="frmClear" />
<
label></label>
<
input id="bottom" type="submit" name="login" value="Login" />
</
form>
</
body>
</
html
Qualche suggerimento per risolvere il problema ?