html - Aligning complex bootstrap button layout -


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

enter image description here

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> &nbsp;     <asp:literal runat="server" text="&nbsp;<%$ resources:main, estimatedtimecaption %>" />     <span data-bind="text: moment(waitingqueueclient.estimatedconsultationtime).format($('#timeformat').html().trim())"></span>     <br />     <asp:literal runat="server" text="&nbsp;<%$ 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> &nbsp;     estimated time:     <span>1:41 pm</span><br />     scheduled time:      <span>9:30 am</span> </button> 

demo

note i've moved break tag same line preceding span. placing below adds whitespace @ end of first line.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -