I want to add a curved line in left side of list element while mouse hover. The problem is when I hover the list the list line become multiple line. Below is my code.
<html>
<style>
.table-of-contents{
background-color:#F0FAFA;
padding:48px;
border-radius: 48px;
}
.table-of-contents li:hover{
width:5px;
height:calc(100%-20px);
background-color:#785aff;
border-radius:5px;
list-style: none;
text-indent:25px;
}
</style>
<body>
<div class="table-of-contents">
<h2>Table of Contents</h2>
<ul style="margin-left:30px">
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url This is a multiline url </a></li>
</ul>
</div>
</body>
</html>
**Its showing Like below**
[![enter image description here][1]][1]
**But I Need Like when hover the list element**
[![enter image description here][2]][2]
[1]: https://i.stack.imgur.com/c1Ur8.png
[2]: https://i.stack.imgur.com/mtppf.png