JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>
bla bla
</li>
<li>
bla bla
</li>
<li>
bla bla
</li>
<li>
bla bla
</li>
</u>
CSS
body{
background: #ddd;
}
ul{
margin: 10px;
}
li{
border-top: 1px solid #fff;
border-bottom: 1px solid #999;
padding: 10px;
}
li:first-child{
border-top: 0;
}
li:last-child{
border-bottom: 0;
}
li:hover{
border-color: transparent; /* only half o the border is removed */
background: #ccc;
border-radius: 7px;
}