title: PHP/MySQL Limit Characters
body: <p>Below is a preview of what I am dealing with:
  <img src="https://i.stack.imgur.com/7yvvu.png" alt="enter image description here"></p>
  
  <p>The heading, the text, and the image is all dynamically created based on the user.  They can choose if they want to add a picture, and they can choose what text to put in the heading and the main content.</p>
  
  <p>There <strong>cannot</strong> be any scrolling, so it has to be visible and cannot go past the bottom of that white.  </p>
  
  <p>My question is... how can I limit the text of the body?</p>
  
  <ul>
  <li><p>If the heading is large and goes down to two lines, and there is a picture, then in order to stay in the lines and not go past the white it has to be limited to a certain amount of characters.</p></li>
  <li><p>But another user could decide to not have a picture and keep the heading in one line, so that user will have more text to write so the limit should be different.</p></li>
  </ul>
  
  <p>I guess the confusing part for me is like.. what if a user has no picture and has a short heading, and creates some really long text to fit the size, but then later on decides to add an image.. then that long text will now no longer fit.  So now.. I can't limit the text because it's already there. </p>
  
  <p>I hope that makes sense. If anyone could help me through this and give me some ideas I would really appreciate it.</p>