html - Aligning complex bootstrap button layout -
i got (not soooo) complex bootstrap button layout align right.here's looks now:

i second line (scheduled time) align right. have tried far combinations of pull-right , text-right classes on span tags no avail...
anyone has solution this? thanks!
the button code:
<button type="button" class="btn btn-sm btn-default">     <span class="fa fa-pencil fw"></span>       <asp:literal runat="server" text=" <%$ resources:main, estimatedtimecaption %>" />     <span data-bind="text: moment(waitingqueueclient.estimatedconsultationtime).format($('#timeformat').html().trim())"></span>     <br />     <asp:literal runat="server" text=" <%$ resources:main, scheduledtimecaption %>" />     <span data-bind="text: moment(waitingqueueclient.fixedconsultationdatetime).format($('#timeformat').html().trim())"></span> </button>      
the text-right utility class bootstrap provides make simple, button classes override it. we'll need more forceful:
.btn.text-right {text-align: right !important;}  <button type="button" class="btn btn-sm btn-default text-right">     <span class="glyphicon glyphicon-pencil fw"></span>       estimated time:     <span>1:41 pm</span><br />     scheduled time:      <span>9:30 am</span> </button>     note i've moved break tag same line preceding span. placing below adds whitespace @ end of first line.
Comments
Post a Comment