When you hover above the second item, the hide show under the second item.
What I want: The "hide" shows under the FIRST item, left aligned.
Is that possible even it stays nested with the second one?
Tried it with margin-left: -30px and it works, but its not responsive. Is there any solution how i can make it responsive, too?
Thanks for any help!!
Thanks for any help!!
.container {
display: flex;
}
.item {
padding: 1px;
cursor: pointer;
position: relativ;
}
.hide {
opacity: 0;
position: relative;
}
.item:hover .hide {
display: block;
opacity: 1;
}
<div class="container">
<div class="item">item
</div>
<div class="item">item
<div class="hide">hide</div>
</div>
</div>