www.webdeveloper.com
Results 1 to 2 of 2

Thread: cell width not staying

  1. #1
    Join Date
    Jan 2011
    Posts
    135

    cell width not staying

    The comments part of my html form is echo to a table on a php page. The cell width is set to a certain width. But the type once it comes into the cell from the form doesnt wrap so its one continuous line, instead of breaking and the end of the cell and going to the next line how do I do this.

    Here is the code for that cell:
    HTML Code:
    <td colspan="2" style="border: .05em solid #000" width="256"><span style="border-color:#000 border-collapse:collapse; font-size: 13px; width:60%; WORD-BREAK:BREAK-ALL;"><?php echo $_SESSION['comments'];?></span></td>

  2. #2
    Join Date
    Dec 2010
    Posts
    36
    Have you tried to define the 256 as px? Sounds dumb, I know, but it could work. I know I normally type the units in when I adjust sizes.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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



Recent Articles