JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>
<div class='abs'>
<table class='cart_table'>
<tr>
<td>Текст Текст Текст</td>
<td>Текст Текст Текст</td>
<td>Текст Текст Текст</td>
<td>Текст Текст Текст</td>
<td>Текст Текст Текст</td>
<td>Текст Текст Текст</td>
<td>Текст Текст Текст</td>
</tr>
</table>
</div>
</li>
</ul>
CSS
ul {
float:right;
background-color: #000;
height: 40px;
width: 100px;
}
li {
position: relative;
}
.abs {
display: block;
position: absolute;
top: 50px;
right: 0;
max-height: 560px;
box-sizing: border-box;
padding: 10px;
float: left;
background-color: rgba(0,0,0,0.8);
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.cart_table {
max-height: 388px;
}
.cart_table tr {
display: block;
box-sizing: border-box;
height: 30px;
min-width: 410px;
max-width: 840px;
}
.cart_table tr:hover {
background-color: #000000;
}
.cart_table td {
display: block;
box-sizing: border-box;
height: 30px;
padding: 0 10px 0 0;
float: left;
color: #ffffff;
}