I am trying to display text inside a container. The value of the text itself is formatted but when I add it to the block the format is condensed and it overflows past the box.
How can I keep the format of the text as well as add a scrollbar in the container to keep it from overflowing?
The span value as shown escapes the container but if you look above in the grey area the value itself is formatted correctly upon inspection
Snippet:
.container-card {
/* Add shadows to create the "card" effect */
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
height: 20vh;
}
<div class="container">
<span style="overflow: scroll !important;">Some text</span>
</div>