Grow your CSS skills. Land your dream job.

Text Align Right for a Table Cell

  • # January 26, 2010 at 6:32 pm

    If I have the rule

    Code:
    td.tar { text-align: right; }

    and the tag

    Code:
    12345

    the number will not be right justified. If I change the tag to

    Code:
    12345

    It does justify.

    What is it I don’t know? (I mean about this – what I don’t know in general would fill an abyss.)

    # January 28, 2010 at 3:30 am

    http://www.hotdesign.com/seybold/
    http://www.w3schools.com/css/default.asp

    I think this would fix your problem:

    Code:

    12345

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".