I want to know how can I add elements to page without breaking line
Now I have a piece of code:
@foreach (var item in Model.TagModels)
{
<div class="editor-field">
@Html.EditorFor(model => item.Name)
@Html.ValidationMessageFor(model => item.Name)
</div>
}
which adds me inputs to page, but with breaking line.
I want to have it in one row. Could be done?
Try this:
The float property in CSS is used for alignment. This would place all the divs in one line. Each DIV is added to the right of the previous DIV