Home How to float dynamically generated content to the right in bootstrap css?
Reply: 0

How to float dynamically generated content to the right in bootstrap css?

user648
1#
user648 Published in May 25, 2018, 11:10 am

I have a for loop that is dynamically generating two fields(label and text box). I want the second field to be on right most corner. How should I style it? This is the for loop I am using:

<div class="form-group">
    @for(int i=0;i<2;i++)
    {
            <label class="required col-sm-3 control-label">
                TextBox  
            </label>
            <div class="col-sm-2">
                @{
                    @Html.TextBox("TextBox")
                }
            </div>
    }
</div>  

This is my current output:

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30964 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO