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.
Not a member yet? Click here to register.
Forgot Password?

Line breacks (solved)

Asked Modified Viewed 2,026 times
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
asked
Senior Member

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
// 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
Edited by Catzenjaeger on 12-08-2016 16:04,
Catzenjaeger attached the following file:
ashampoo_snap_20160811_19h50m03s_002_.jpg [No information available / 186 Downloads]
0 replies

4 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

that long words rarely exist in the first place ;)
If you for some reason have it, use a css to control it with
  word-wrap: break-word;

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

or make a class.
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

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

      // 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";
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

If it works, it is OK ;)
0 replies
C
Catzenjaeger
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions
answered
Senior Member

Yup it works thanx for help and answer ... Problem is solve for the moment.
0 replies

Category Forum

PHPFusion Dynamics - 9

Labels

None yet

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
  • Senior Member, joined since
  • Contributed 408 posts on the community forums.
  • Started 137 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet