Css Form element alignment
I have a html form(ASP.Net MVC). The input textboxes are wrapped in a div with a class name of editor-field. Example html:
<div class="editor-field">
<input id="EmployeeNo" type="text" value="" name="EmployeeNo">
</div>
The style for the editor-field class is:
.display-field, .editor-field
{
float: left;
}
The textboxes are all way of t开发者_Python百科o the right, how can I get it to be closer to the labels? I've tried adding margins and padding, but it doesnt work.
The problem was with the .editor-label. It had a width that was too big.
精彩评论