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 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    text align="justify"

    If I don't define align properties,
    when I use <center> to center the table All texts centered in the table.
    when I remove <center> All texts are ok (left).
    It was my problem. So I use align properties, Now "justify" cannot work.

    Code:
    <center>
    <table>
    .....
    <td align="justify">[hhhhhhh hhhh - we hhhh (hh) whhhhh (2) whhh hhhhahhasis or (h) whhhhhh fghh ghgf hgf hggfh hgis ghfhfgh fhhfhgggg].<br />
    .....
    </table>
    </center>
    In Opera and Mozilla - its working properly but in the IE 6 when I use align="justify" text are centered.

    please help.
    Last edited by r_amin; 10-05-2007 at 12:55 PM.

  • #2
    Regular Coder
    Join Date
    Sep 2007
    Location
    Raleigh, NC
    Posts
    273
    Thanks
    7
    Thanked 59 Times in 52 Posts
    <center> has traditionally been used to center page elements, but it should only actually apply to text.

    What I would suggest you do is to use CSS instead:

    Code:
    table {
       width: 500px;
       margin: 0 auto;
       text-align: justify;
       }
    If you give the table a firm width you can center it with margins, and the text-align will justify your text.


  •  

    Posting Permissions

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