In my react-redux application, I encountered an issue where I needed to display a quote-style line next to certain text. Using the CSS border property gave me this result.
https://i.sstatic.net/4zt3n.png
However, I would prefer the line to have rounded corners, like in this image:
https://i.sstatic.net/I2XdJ.png
Here is the CSS and HTML code I am currently using:
.post-quote-layout{
margin-top: 16px;
background-color: white;
border-left: #6D45FC solid 6px;
height: 100%;
}
.post-quote-text{
font-size: 17px;
background-color:white;
margin-left: 10px;
line-height:26px;
}
<div key={index} className="post-quote-layout">
<div className="post-quote-line">
<p className="post-quote-text" dangerouslySetInnerHTML={{__html:item?.text}} />
</div>
</div>
I am looking for a way to make the line responsive as the content increases. How can I achieve this desired result?