ragazzi ciao non riesco a sistemare questo form mi da il testo sopra il campo d imput invece io vorrei che prima ci fosse il testo tipo nome: campo d imput cosa fare? vi postola pagl htmlcodice:.power { background-color: #eeeeee; width:1024px; height:20px; background-image: url(../immagini/fotter.gif); padding: 0px; color: #00FFFF; font-family: Georgia, "Times New Roman", Times, serif; font-size: 12px; font-weight: bold; text-align: center; background-repeat: repeat-x; } .separator { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; text-align: center; color: #0000FF; } .content_form{ width:450px; border:1px dashed #999999; text-align:left; background-color:#eeeeee } label { width:450px; display:block; float:left; clear:left; padding:1px; text-align:left; } input { margin:3px; }
codice:</script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="stili-css/marik.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- html, body{ width: 100% ; margin: 0px auto; padding: 15px; background-color: #dddddd; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } #principale{ background-color: #eeeeee; width:1024px; border: 3px thin solid #cccccc; margin:auto; display:block; float:left; clear:left; } </style> </head> <body> <div id = "principale" align="center" > <div id ="menu" > <script type="text/javascript"> var fo = new FlashObject("flash/banner.swf", "Menu", "1024", "300", "false", ""); fo.addParam("quality", "high"); fo.addParam("menu", "false"); fo.write("menu"); </script> </div> <div class="content_form"> <form id="captchaForm" name="captchaForm" method="post" action=""> <div class="row"> </div> <div class="row"> </div> <div class="row"><label for="company">Ragione Sociale: </label> <input name="company" type="text" id="company" size="30" value="<?php if(isset($_POST['company'])){echo $_POST['company'];} ?>" /> </div> <div class="row"><label for="name">Nome: </label> <input name="name" type="text" id="name" size="30" value="<?php if(isset($_POST['name'])){echo $_POST['name'];} ?>" /> </div> <div class="row"><label for="name">Cognome: </label><input name="surname" type="text" id="surname" size="30" value="<?php if(isset($_POST['surname'])){echo $_POST['surname'];} ?>" /></div> <div class="row"><label for="address">Telefono: </label><input name="telephone" type="text" id="telephone" size="30" value="<?php if(isset($_POST['telephone'])){echo $_POST['telephone'];} ?>" /></div> <div class="row"><label for="address">Oggetto: </label><input name="sub" type="text" id="sub" size="30" value="<?php if(isset($_POST['sub'])){echo $_POST['sub'];} ?>" /></div> <div class="row"><label for="email">Email: </label><input type="text" name="email" size="30" value="<?php if(isset($_POST['email'])){echo $_POST['email'];} ?>" /> </div> <div class="row"><label for="comments">Messaggio: </label><textarea name="comments" cols="30" rows="5" id="comments"><?php if(isset($_POST['comments'])){echo $_POST['comments'];} ?></textarea></div> <div class="row"><center><? echo "$ip";?></center></div> <div class="row"><center><? echo "$date" ?></center></div> <div class="row"> </div> <div class="clear"></div> </p> <div class="cpt">[img]phpcaptcha/captchaImage.php[/img]<input type="text" id="captcha_input" name="captcha_input" size="15" /></div> <?php if($error == 1){ ?> <p class="error">The code you inserted was not correct. Try with the new code above</p><?php } ?> <div class="inp" style="text-align:center"><label for="submit"></label><input type="submit" name="scratch_submit" id="scratch_submit" value="Send Form" /><label for="reset"></label><input type="reset" name="Reset" id="Reset" value="Reset" onClick="return resetta()"> </div> </form> </div> <div class ="power"> <div><? echo _NOME_BOLD_ ; ?></div> </div> <div class="separator"> <div id="footer">© Copyright 2006-2007 By :<span><? echo POWERED_BY ; ?></span></div> </div> </div> <div align="center"></div> </body> </html>

Rispondi quotando
ma se il label era impostato come display:block; , e lui non vuole che l'input vada a capo dopo il label, non č forse corretto togliere il display:block?