Support » Theme: Customizr » How to align text left and align (float) text right on same line?

  • Resolved brucesirisakd

    (@brucesirisakd)


    I’m trying to create a menu for my thai restaurant and I want to have the title of the dish aligned to the left and then have the price aligned and floated to the right. Then under the title of the dish will have some of the ingredients. Check out my sample code below. I don’t know why, when I create the row with the title (text-aligned left) then price floated right, it makes the price shift down to the next line and floated right. I want it to stay in the same row as the title of the dish. The <span> tag is the part that’s moving to the next line. Can anyone help me out on this?

    Here’s a link of how it looks like. Not going to be on this page, but I’m not going to touch this page until the end:
    http://www.bounbistro.com/happy-hour

    <div class="row-fluid">
    
                        <div class="span6">
    
                            <div class="row-fluid">
    
                                <strong style="text-align: left;">WOK BASIL WITH CHICKEN</strong>
    
                                <span style="float: right">8</span>
    
                            </div>
    
                            <div class="row-fluid">
    
                                <p style="font-weight: 200; font-style: italic">Ground Chicken, Basil, Bell Pepper, Onion, Chili, Holy Basil Sauce<br> (Served with Jasmine Rice / Brown Rice $1)</p>
    
                            </div>
    
                            ... Then the next items
Viewing 1 replies (of 1 total)
  • Nevermind, false alarm. Didn’t know I could just put them in divs and use the bootstrap components pull-left, pull-right. Just in case someone wants to see how I fixed it here’s the code.

    <div class="span6">
    
                            <div class="row-fluid">
    
                                <div class="pull-left"><strong style="text-align: left; color: #508E34">WOK BASIL WITH CHICKEN</strong></div>
                                <div class="pull-right">8</div>
    
                            </div>
Viewing 1 replies (of 1 total)
  • The topic ‘How to align text left and align (float) text right on same line?’ is closed to new replies.