JSFiddle - React, Tailwind, and code Playground
HTML
<p>
<span class="bigchar ldquo"></span>
This text is surrounded by quotes. I want the text to wrap according it's parent width. This is no problem, it's the default behaviour. However, I would like to avoid the last span, containing a decoration quote, to wrap.
<span class="bigchar rdquo"></span>
</p>
CSS
p { position: relative; }
.bigchar {
display: inline-block;
width: 20px;
}
.bigchar:after {
color: #aaa;
font-size: 50px;
position: absolute;
}
.ldquo:after {
content: '“';
top: -10px;
}
.rdquo:after {
content: '”';
bottom: -30px;
}