html - Adding elements without br in razor -


i want know how can add elements page without breaking line

now have 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 page, breaking line.

i want have in 1 row. done?

try this:

@foreach (var item in model.tagmodels) {       <div class="editor-field" style="float: left">         @html.editorfor(model => item.name)         @html.validationmessagefor(model => item.name)     </div>  } 

the float property in css used alignment. place divs in 1 line. each div added right of previous div


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -