Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Location
    Land O Lakes FL and San Jose CA
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Table Data cell with some text left- and some text right-aligned

    Is it possible to have some text in a table data cell left-aligned while other text on the same line is right-aligned?

    I tried this but it didn't work:
    Code:
    <TD><span style="text-align:left">California</span><span style="text-align:right">CA</span></TD>
    Is there a way that does work?

    - Rich

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,032
    Thanks
    15
    Thanked 240 Times in 240 Posts
    Use float instead of text align. It will work.

  • Users who have thanked DrDOS for this post:

    richpasco (11-04-2010)

  • #3
    New to the CF scene
    Join Date
    Aug 2006
    Location
    Land O Lakes FL and San Jose CA
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DrDOS View Post
    Use float instead of text align. It will work.
    Indeed, it does! Thank you very much!
    Code:
    <span style="float:right">CA</span>


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •