I have an input with text and ellipses when it overflows. I'd like to see the remaining text when I hover. However, it will not show. I looked up different solutions online and all seem to use the method that isn't working. Any help would be appreciated.
.task-text {
border: none;
border-radius: 5px;
background-color: var( --bgTasks-color);
outline: none;
color: var(--text-color);
font-size: 16px;
width: 280px;
font-size: 16px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
.task-text:hover {
overflow: visible;
}
<div class="tasks">
<div class="task1">
<input type="checkbox" id="button1"/>
<input class="task-text" for="button1">
</input>
<button class="material-symbols-outlined star" style="font-size:20px;">star</button>
<button type="button" class="material-symbols-outlined delete" style="font-size:20px;">delete</button>
</div>
I expected the cutoff text to appear.