Justify text in table cell


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Justify text in table cell

  1. #1
    Brian Guest

    Justify text in table cell

    I have a table and one of the cells contains text that wraps at the side of
    the page in order to fit the several paragraphs into the cell. When this
    happens the right hand margin of the page looks choppy due to the fact that
    each line wraps at a different place. I need to know if there is a way to
    justify the text with both the left and right hand margins being even. I'll
    take any suggestions, but I would prefer something that will have cross
    browser support.

    Thanks in advance.





  2. #2
    janet Guest

    Re: Justify text in table cell


    There is an easy way to justify your text within the table area. Simply add
    <p align="justify"> within your table followed by your text. This works well
    in IE and Netscape.

    "Brian" <brian.martens@wcom.com> wrote:
    >I have a table and one of the cells contains text that wraps at the side

    of
    >the page in order to fit the several paragraphs into the cell. When this
    >happens the right hand margin of the page looks choppy due to the fact that
    >each line wraps at a different place. I need to know if there is a way

    to
    >justify the text with both the left and right hand margins being even.

    I'll
    >take any suggestions, but I would prefer something that will have cross
    >browser support.
    >
    >Thanks in advance.
    >
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center