I'm having a issue.
I'm working on a widget to display some elements on someone's page. I have created a fiddle, please see:
.wrapper {
width: 300px;
display: block;
position: relative;
overflow: hidden;
background-color: gray;
}
.widget {
width: 300px;
height: 300px;
display: block;
position: relative;
background-color: green;
}
.box {
width: 100px;
height: 100px;
position: absolute;
left: 250px;
top: 50px;
background-color: red;
visibility: visible;
}
<div class="wrapper">
<p>Some text and descriptions</p>
<div class="widget">
<div class="box"></div>
</div>
<p>Some more text and description and some more offcourse and a bit more, and just a tiny bit more</p>
</div>
We have absolute positioning on some elements inside of the widget but the outer parents on the users pages has overflow:hidden;
on it so some elements get partly hidden.
Is there anyway to make this work? Without messing up the parents element text. So on the fiddle you see the red box, we want that one to be fully displayed.
But we can't change any of the wrapper properties! Fun little game ;)
Fixed position on the box is not usefull since it causes problems.