/ Published in: CSS
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<form>
<label for=â€nameâ€>Name</label>
<input id=â€name†name=â€nameâ€><br>
<label for=â€addressâ€>Address</label>
<input id=â€address†name=â€addressâ€><br>
<label for=â€cityâ€>City</label>
<input id=â€city†name=â€cityâ€><br>
</form>
label,input {
display: block;
width: 150px;
float: left;
margin-bottom: 10px;
}
label {
text-align: right;
width: 75px;
padding-right: 20px;
}
br {
clear: left;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                