Tuesday, April 5, 2016

How to align the button on the right in bootstrap?

This is something I always like to do, aligning to right or center.

With bootstrap, it's so much easier now.

<div class="row text-right">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <asp:Button ID="btnAddNew" runat="server" 
CssClass="btn btn-success" 
            Text="Add New Member"></asp:Button>


If you want to centerize the button, just change the class to text-center instead of text-right.

No comments:

Post a Comment