Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #308449

    Hi!
    Maybe a silly question, but i’m trying to do a nice food menu for a restaurant and when tryiing to ad this in a textblock

    <p style="text-align: left;"><strong>Cola</strong></p>
    <p style="text-align: right;">25:-</p>

    I also tried this.

    <span style="float: left;"><strong>Cola</strong></span>
    <span style="float: right;">25:-</span>

    byt they don’t appear in same line.
    When trying to use a table it get’s borders and a white background, which is something i don’t want.
    Do i really need to install a food menu plugin to be able to do this?

    Regards, Charlie

    • This topic was modified 10 years, 3 months ago by Charlie999.
    #308553

    Hi Charlie,

    Can you post the link to the page where you are trying this? i tested this code on my local install and it worked:

    <p style="float: left"><strong>Cola</strong></p>
    <p style="float: right">25:-</p>

    Regards,
    Josue

    #308761

    Hi Josue,
    No need for that anymore. Your code is working for me too. The differents is that i was trying to use <span> with the floating.
    Thankyou! Now i do not need a plugin to make a good looking food menu.

    Friendly regards, Charlie

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Left and right aligned text in same line’ is closed to new replies.