Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Line breacks (solved)

i have some fields where i show data from a database
but when i input some texts without breaks it destroy my layout massively

what can i do? or is this a bug?
i have RC4

my code
CodeDownload  
// Accessories 
         echo "<tr>\n";          
               echo "<td  class='navbar-default'><div class='text-smaller text-uppercase'><strong>".$locale['figure_457'].":</strong></div></td>\n";
               echo "<td  class='list-group-item'><small>".($data['figure_accessories'] ? $data['figure_accessories'] : "-")."</small></td>\n";   
         echo "</tr>\n";
         
         // Discreption
         echo "<tr>\n";            
               echo "<td  class='navbar-default'><div class='text-smaller text-uppercase'><strong>".$locale['figure_423'].":</strong></div></td>\n";
               echo "<td  class='list-group-item'><small>".nl2br(parseubb(parsesmileys($data['figure_description'])))."</small></td>";      
            echo "</tr>";   
         echo "</table>\n";   



www.php-fusion.co.uk/infusions/forum/attachments/ashampoo_snap_20160811_19h50m03s_002_.jpg
Catzenjaeger attached the following file:
that long words rarely exist in the first place ;)
If you for some reason have it, use a css to control it with
CodeDownload  
  word-wrap: break-word;


something like
CodeDownload  
<div style ='word-wrap: break-word;'></div>


or make a class.
thanx for your response. I have make it so for the moment and it works too but i dont know ... is this ok so?
CodeDownload  

      // Accessories    
         echo "<tr>\n";          
               echo "<td  class='navbar-default'><div class='text-smaller text-uppercase'><strong>".$locale['figure_457'].":</strong></div></td>\n";               
               echo "<td style='word-break: break-all; word-wrap: break-word;'><small>".($data['figure_accessories'] ? $data['figure_accessories'] : "-")."</small></td>\n";                  
         echo "</tr>\n";
         
      // Discreption
         echo "<tr>\n";            
               echo "<td  class='navbar-default'><div class='text-smaller text-uppercase'><strong>".$locale['figure_423'].":</strong></div></td>\n";
               echo "<td style='word-break: break-all; word-wrap: break-word;'><small>".nl2br(parseubb(parsesmileys($data['figure_description'])))."</small></td>";      
         echo "</tr></table>\n";

If it works, it is OK ;)
Yup it works thanx for help and answer ... Problem is solve for the moment.
Thread Information
Author
Replies
5 posts
Views
1,095 times
Last Post
Last updated on 3 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Falk, Catzenjaeger