I am working on a project where I am displaying messages when the user hovers over a box, I have created a scenario to mock up what I am having issues with.
The blue box should appear as the full 250px as defined and not be clipped to the 200px that the containing div is set to, is there anyway to get round this, I can sit the blue box outside the containing div as its all part of a UserControl that needs to be self contained.
#first {
width: 200px;
height: 200px;
background-color: green;
overflow: hidden;
}
#second {
width: 50px;
height: 50px;
background-color: red;
position: relative;
}
#fourth
{
width: 250px;
height: 50px;
background-color: blue;
position: absolute;
z-index: 100;
}
<div id="first">
<div id="second">
<div id="fourth">
test
</div>
</div>
</div>
#first{ overflow: hidden }because that is intended behavior and there is no work around apart from changing CSS/HTML structure