Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it L'avatar di bode
    Registrato dal
    Feb 2007
    Messaggi
    304

    Misterioso a capo automatico

    Salve,durante l'implementazone del mio sito ho notato che utiizzando degli elementi inline come span e img che non dovrebbero lasciare spazi ne sopra e ne sotto questo non succede,piu precisamente vengono lasciati addirittura 2 spazi(uno per andare a capo e in piu un altro spazio) in IE6 mentre su FF (come sempre) è tutto ok.Ora vi mostro 2 screen ed il codice.
    Risultato IE6

    Risultato FF


    codice:
     <div class="header">
    	                             </div>
    							<div class="wrapper">
    				
    					               <div class="leftside">
    				                              [img]login.png[/img] 
    												<div class="form_login">  
    												        <form name="login" style="border:0px" action="index.html" method="post" onsubmit="return ver();">
    															  <span class="testo_form"> Username:</span>
    															  
    
    															  <input name="user" type="text" size="15" maxlength="10" class="space_form">
    															  
    
    															  <span class="testo_form"> Password:</span> 
    															  
    
    															  <input name="pass" type="password" size="15" maxlength="15">
    															  
    
    															  
    
    															  <input  type="submit" name="submit"  value="Login">
    															  
    
    															</form>
    												 </div>
    Il Css
    codice:
    .header{
    
    text-align:center;
    width:800px;
    height:150px;
    padding:0px;
    margin:0px auto;
    background-color:white;
    }
     
     .wrapper{
    background-color:#7181f3;  
    margin: 0px auto;
    padding:0; 
    width:800px;
    
    }
    
    .leftside{
     height:800px;
    float:left; 
    margin:0px;
    padding:0px; /*0*/
    width:200px;
    background-color:#E0FFB3;
    
    }
     
    .form_login{
    
    background-color:yellow;
    text-align:center;
    font-size:14px;
     margin:0px 15px 0px 15px; 
    }
    .testo_form{
    font-family:verdana;
    }
    .space_form{
    background-color:red;
    
    }

  2. #2
    prima di tutto dovresti usare la taggatura giusta:

    codice:
    <legend> login </legend>
    
    <label> user </label>
    <input />
    
    <label> pass </label>
    <input />
    
    <input />
    con questo rimuovi margini e padding che i browser impostano di default (ovviamente al posto dell'asterisco, che prende tutti i tag, puoi inserire quelli desiderati):

    codice:
    *
    {
       margin: 0;
       padding: 0;
    }

  3. #3
    Utente di HTML.it L'avatar di bode
    Registrato dal
    Feb 2007
    Messaggi
    304
    Purtroppo non cambia niente!!!!Qualche altra soluzione?

    EDIT:ho risolto aggiungendo una classe al tag <form>
    cosi'
    codice:
    <div class="form_login">  
    <form name="login" style="border:0px" action="index.html" method="post" onsubmit="return ver();">
    															  <span class="testo_form"> Username:</span>
    															  
    
    															  <input name="user" type="text" size="15" maxlength="10" class="space_form">
    															  
    
    															  <span class="testo_form"> Password:</span> 
    															  
    
    															  <input name="pass" type="password" size="15" maxlength="15">
    															  
    
    															  
    
    															  <input  type="submit" name="submit"  value="Login">
    															  
    
    															</form>
    												 </div>

  4. #4

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.