asp.net - Bootstrap alignment with rows and margins -
asp.net - Bootstrap alignment with rows and margins -
i trying align buttons in center. , text pulled right want next buttons, , centered. ive been trying placing rows in every possible combination , ive tried centering stuff in sort of ways cant right. @ moment i'm forced utilize <br> of remain on same row. there must way prepare i'm missing. if seek remove pull-right changes row instead of placing next button.
code:
<itemtemplate> <td> <div class="list-group-item"> <a href="<%# "http://" + eval("url") %>" class="list-group-item col-md-5"><%# eval("url") %></a> <asp:linkbutton id="upvotebutton" runat="server" cssclass="btn btn-default btn-xs" style="margin-left:2%"><i class="fa fa-chevron-up" style="color:green"></i></asp:linkbutton> <div class="pull-right"> <asp:label id="labelscore" runat="server" text="score: "></asp:label> <asp:label id="labelscorevalue" runat="server" text="234"></asp:label> </div> <br /> <asp:linkbutton id="downvotebutton" runat="server" cssclass="btn btn-default btn-xs" style="margin-left:2%"><i class="fa fa-chevron-down" style="color:red"></i></asp:linkbutton> </div> </td> </itemtemplate> current look:
i have fixed issue way, seek 1 , see if works.
<style> a.lnk-content, .lbl-score { display:block; margin-left: 30px; /* adjust based on requirement*/ margin-top: 10px; /* adjust based on requirement*/ } </style> <td style="border: 1px solid black; height: 50px;"> <div class="row"> <div class="col-xs-7"> <!-- adjust columns based on needs --> <a href="#" class="lnk-content">this link</a> </div> <div class="col-xs-5"> <!-- adjust columns based on needs --> <div class="pull-left"> <div><asp:linkbutton id="upvotebutton" runat="server" cssclass="btn btn-default btn-xs"><i class="fa fa-chevron-up" style="color:green"></i></asp:linkbutton></div> <div><asp:linkbutton id="downvotebutton" runat="server" cssclass="btn btn-default btn-xs"><i class="fa fa-chevron-down" style="color:red"></i></asp:linkbutton></div> </div> <div class="lbl-score"> <asp:label id="labelscore" runat="server" text="score: "></asp:label> <asp:label id="labelscorevalue" runat="server" text="234"></asp:label> </div> </div> </div> </td> and result, adjust in anyway want now: buttons on result below don't appear because don't have styles.
i hope helps you.
asp.net twitter-bootstrap twitter-bootstrap-3
Comments
Post a Comment