I have a paragraph with a text inside .descBlog
. I set the width of this paragraph width: 300ch
, however, I want it to have a div
greater than width: 300px
. I would like that with the limitation of 300 characters, and with an upper div of 300px, it would break and throw the contents of the paragraph down.
p.descBlog {
max-width: 300ch;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
<div class="superior">
<p class="descBlog">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam at vehicula turpis. Donec condimentum sagittis mi sed sollicitudin. In id justo molestie, cursus libero non, auctor ante. Praesent efficitur ac purus ac pellentesque. Pellentesque varius
nisi quis urna placerat fermentum. Quisque imperdiet est nec nibh tempus viverra. Morbi massa metus, porta eu ex ac, dignissim ultricies felis.</p>
</div>