JSFiddle - React, Tailwind, and code Playground
HTML
<p>
<span><span class="inner-left">“</span></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><span class="inner-right">”</span></span>
</p>
CSS
p {
text-indent: 50px;
padding-right: 20px;
}
span {
position: relative;
height: 20px;
text-indent: 0;
color: #aaa;
}
.inner-right {
position: absolute;
top: 10px;
left: 5px;
line-height: 20px;
font-size: 50px;
}
.inner-left {
position: absolute;
top: 10px;
left: -30px;
line-height: 20px;
font-size: 50px;
}