.listElement{
padding: 0.60rem;
margin: 10px auto;
overflow-x: hidden;
width: 75%;
/* border: 2px solid red; */
display: inline-block;
background-color: #eee
}
.closeList{
padding: 0.60rem;
margin: 5px auto;
display: inline-block;
text-align: center;
background-color: #ddd;
width: 15%;
cursor: pointer;
}
.container{
background-color: red;
}
<div class="container">
<div class="listElement">
hellooo
</div>
<div class="closeList">
x
</div>
</div>
the ####overflow#### property is causing the X to disorient, please tell me how to make it so that it does not happen.
this block of code is supposed to be a to-do element or task , so I want it so that when the task is too long the extra text gets hidden and the X thats supposed to be the cancel button stays on the right.