2
I have a paragraph with a text inside .descBlog
. I defined the width of that paragraph width: 300ch
, but I want you to have a div
superior with width: 300px
. I would like it with the limitation of 300 characters, and with a top div of 300px, it breaks and plays the content 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>
How so "div superior"?
– Sam
@dvd I edited the question.
– Felipe Viero Goulart
You can see HTML tags in the middle of the text?
– Sam
@DVD No, only text.
– Felipe Viero Goulart
I think this might interest you https://answall.com/questions/293488/limitr-quantity_modo-bootstrap/293504#293504
– hugocsl