title: How to make div ellipsis with multiple paragraphs inside it?
body: <pre><code>&lt;div&gt;
   &lt;p&gt;This is a sample text.&lt;/p&gt;
   &lt;p&gt;This is a 2nd sample text. existing inside a paragraph. I want to make this ellipsis to avoid overflow text.&lt;/p&gt;
   &lt;p&gt;This is a last paragraph which is not going to display as 3 lines are already displayed&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>required output - </p>
  </blockquote>
  
  <pre><code>This is a sample text.
  This is a 2nd sample text. existing 
  inside a paragraph. I want to make...
  
  </code></pre>
  
  <p>I want to make text inside div ellipsis with 3 lines by considering all paragraphs as a single text.<br>
  How can I achieve this??</p>
  
  <blockquote>
    <p>I have tried following one - </p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div{
   width: 200px;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: initial;
   display: -webkit-box;
   -webkit-line-clamp: 3;
   -webkit-box-orient: vertical;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
   &lt;p&gt;This is a sample text.&lt;/p&gt;
   &lt;p&gt;This is a 2nd sample text. existing inside a paragraph. I want to make this ellipsis to avoid overflow text.&lt;/p&gt;
   &lt;p&gt;This is a last paragraph which is not going to display as 3 lines are already displayed&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But it not working properly as expected if there is multiple paragraph inside div.</p>