I'm trying to display 2 form boxes on one line and another below them. Anything I try with divs cannot get these 2 fields to separate. I've even tried to insert
between them with no luck.
Here's my html:
<div class="form-line">
<input class="input-text" id="name-box" type="text" name="name" value="Name">
<input class="input-text" id="mail-box" type="text" name="mail" value="Email">
</div>
CSS:
.input-text {
padding-left: 3px;
font-family: sans-serif;
}
.input {
display: inline;
}
.form-line {
padding-top: 5px;
clear:both;
}
#name-box {
float: left;
}
#mail-box {
float: left;
}
Can you please give me an idea of how to put 10px between these boxes? Thanks.