Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

CSS text align question

  • 06-10-2006 11:05AM
    #1
    Closed Accounts Posts: 235 ✭✭


    Apologies if I'm asking a really dumb question and I definitely feel I'm missing something obvious but I've started banging my head against the wall on this one.

    I'm doing the whole re-design without tables bit and I've hit a stumbling block.

    What I basically want to do is have a variable length of text with a status at the end of the line (with the end bit lining up vertically).

    Since that doesn't make a whole lot of sense, here's a sample:
    HeadlineHeadline....new
    Headline................old
    Headlinehead.........old
    Hea.....................new

    What I'm wondering is, how I get the status column to right-align and the headline's to left align with the variable space between them.

    Any help would be greatly appreciated.


Comments

  • Closed Accounts Posts: 1,200 ✭✭✭louie


    <div style='text-align:left;'>
      <div style='text-align:right;float:right;width:100px;'>old news</div>
    Headline news
    </div>
    


  • Closed Accounts Posts: 235 ✭✭Yerac


    That's perfect, thanks for your help louie.


Advertisement